0
0
Fork 0

Add admin API for managing IP blocks (#19065)

This commit is contained in:
Eugen Rochko 2022-08-27 20:56:47 +02:00 committed by GitHub
parent ff19dad5a0
commit b399d79545
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 120 additions and 1 deletions

View file

@ -9,6 +9,10 @@ class IpBlockPolicy < ApplicationPolicy
role.can?(:manage_blocks)
end
def update?
role.can?(:manage_blocks)
end
def destroy?
role.can?(:manage_blocks)
end