Fix GET /api/v1/admin/ip_blocks/:id (#20207)

lolsob-rspec
trwnh 2022-11-09 08:22:58 -06:00 committed by GitHub
parent 9a98169232
commit 96f0997992
1 changed files with 4 additions and 0 deletions

View File

@ -5,6 +5,10 @@ class IpBlockPolicy < ApplicationPolicy
role.can?(:manage_blocks) role.can?(:manage_blocks)
end end
def show?
role.can?(:manage_blocks)
end
def create? def create?
role.can?(:manage_blocks) role.can?(:manage_blocks)
end end