diff options
author | trwnh <a@trwnh.com> | 2022-11-09 08:22:58 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-09 15:22:58 +0100 |
commit | 029b5cd5b1314463920ee3a66335c369093edd26 (patch) | |
tree | 5090256aafdcf804f2a56140f406294ed9add388 | |
parent | 5333447be0c0e278d6f591bb6004fdee903a08f7 (diff) |
Fix GET /api/v1/admin/ip_blocks/:id (#20207)
-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 |