diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/policies/ip_block_policy.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/policies/ip_block_policy.rb b/app/policies/ip_block_policy.rb index 2986a4fdb..8baf6ee2d 100644 --- a/app/policies/ip_block_policy.rb +++ b/app/policies/ip_block_policy.rb @@ -5,6 +5,10 @@ class IpBlockPolicy < ApplicationPolicy role.can?(:manage_blocks) end + def show? + role.can?(:manage_blocks) + end + def create? role.can?(:manage_blocks) end |