1
0
Fork 1
forked from fedi/mastodon

Fix getting a single EmailDomainBlock (#20846)

This commit is contained in:
trwnh 2022-11-17 03:55:50 -06:00 committed by talon
parent 8d2f19e9f6
commit 65b8f5f5d0

View file

@ -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