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