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

This commit is contained in:
trwnh 2022-11-09 08:22:58 -06:00 committed by GitHub
parent 9a98169232
commit 96f0997992

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