diff options
Diffstat (limited to 'app/policies/domain_block_policy.rb')
-rw-r--r-- | app/policies/domain_block_policy.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/app/policies/domain_block_policy.rb b/app/policies/domain_block_policy.rb new file mode 100644 index 000000000..47c0a81af --- /dev/null +++ b/app/policies/domain_block_policy.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +class DomainBlockPolicy < ApplicationPolicy + def index? + admin? + end + + def show? + admin? + end + + def create? + admin? + end + + def destroy? + admin? + end +end |