Fix getting a single EmailDomainBlock (#20846)

This commit is contained in:
trwnh 2022-11-17 03:55:50 -06:00 committed by GitHub
parent c7accdb6ac
commit 0f402ff0eb

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