domain_block_policy.rb 236 B

1234567891011121314151617181920212223
  1. # frozen_string_literal: true
  2. class DomainBlockPolicy < ApplicationPolicy
  3. def index?
  4. admin?
  5. end
  6. def show?
  7. admin?
  8. end
  9. def create?
  10. admin?
  11. end
  12. def update?
  13. admin?
  14. end
  15. def destroy?
  16. admin?
  17. end
  18. end