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

This commit is contained in:
trwnh
2022-11-09 15:22:58 +01:00
committed by GitHub
parent 5333447be0
commit 029b5cd5b1
+4
View File
@@ -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