email_domain_block_policy.rb 236 B

123456789101112131415
  1. # frozen_string_literal: true
  2. class EmailDomainBlockPolicy < ApplicationPolicy
  3. def index?
  4. role.can?(:manage_blocks)
  5. end
  6. def create?
  7. role.can?(:manage_blocks)
  8. end
  9. def destroy?
  10. role.can?(:manage_blocks)
  11. end
  12. end