1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

Fix getting a single EmailDomainBlock (#20846)

This commit is contained in:
trwnh 2022-11-17 03:55:50 -06:00 committed by GitHub
parent 00b2720ef0
commit 72618ebf03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,6 +5,10 @@ class EmailDomainBlockPolicy < ApplicationPolicy
role.can?(:manage_blocks)
end
def show?
role.can?(:manage_blocks)
end
def create?
role.can?(:manage_blocks)
end