Add admin API for managing IP blocks (#19065)
This commit is contained in:
parent
ff19dad5a0
commit
b399d79545
5 changed files with 120 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue