about summary refs log tree commit diff
path: root/app/policies/ip_block_policy.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/policies/ip_block_policy.rb')
-rw-r--r--app/policies/ip_block_policy.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/policies/ip_block_policy.rb b/app/policies/ip_block_policy.rb
index 1abc97ad8..8baf6ee2d 100644
--- a/app/policies/ip_block_policy.rb
+++ b/app/policies/ip_block_policy.rb
@@ -5,10 +5,18 @@ class IpBlockPolicy < ApplicationPolicy
     role.can?(:manage_blocks)
   end
 
+  def show?
+    role.can?(:manage_blocks)
+  end
+
   def create?
     role.can?(:manage_blocks)
   end
 
+  def update?
+    role.can?(:manage_blocks)
+  end
+
   def destroy?
     role.can?(:manage_blocks)
   end