Fix getting a single EmailDomainBlock (#20846)

pull/20678/head
trwnh 2 years ago committed by GitHub
parent 00b2720ef0
commit 72618ebf03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save