From 029b5cd5b1314463920ee3a66335c369093edd26 Mon Sep 17 00:00:00 2001
From: trwnh <a@trwnh.com>
Date: Wed, 9 Nov 2022 08:22:58 -0600
Subject: [PATCH] Fix GET /api/v1/admin/ip_blocks/:id (#20207)

---
 app/policies/ip_block_policy.rb | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/app/policies/ip_block_policy.rb b/app/policies/ip_block_policy.rb
index 2986a4fdb3..8baf6ee2dc 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
-- 
GitLab