You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
296 B

  1. # frozen_string_literal: true
  2. class DomainAllowPolicy < ApplicationPolicy
  3. def index?
  4. role.can?(:manage_federation)
  5. end
  6. def show?
  7. role.can?(:manage_federation)
  8. end
  9. def create?
  10. role.can?(:manage_federation)
  11. end
  12. def destroy?
  13. role.can?(:manage_federation)
  14. end
  15. end