1
0

canonical_email_block_policy.rb 337 B

1234567891011121314151617181920212223
  1. # frozen_string_literal: true
  2. class CanonicalEmailBlockPolicy < ApplicationPolicy
  3. def index?
  4. role.can?(:manage_blocks)
  5. end
  6. def show?
  7. role.can?(:manage_blocks)
  8. end
  9. def test?
  10. role.can?(:manage_blocks)
  11. end
  12. def create?
  13. role.can?(:manage_blocks)
  14. end
  15. def destroy?
  16. role.can?(:manage_blocks)
  17. end
  18. end