mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Fix GET /api/v1/admin/ip_blocks/:id (#20207)
This commit is contained in:
parent
5333447be0
commit
029b5cd5b1
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user