mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-25 12:08:06 +01:00
Fix getting a single EmailDomainBlock (#20846)
This commit is contained in:
parent
00b2720ef0
commit
72618ebf03
1 changed files with 4 additions and 0 deletions
|
@ -5,6 +5,10 @@ class EmailDomainBlockPolicy < 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 a new issue