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

pull/20264/head
trwnh 2022-11-09 08:22:58 -06:00 committed by GitHub
parent 5333447be0
commit 029b5cd5b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

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