gearheads
/
mastodon
Archived
2
0
Fork 0

Fix getting a single EmailDomainBlock (#20846)

gh/stable
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
1 changed files with 4 additions and 0 deletions

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