Fix getting a single EmailDomainBlock (#20846)

This commit is contained in:
trwnh authored and GitHub committed 2022-11-17 10:55:50 +01:00
1 parent 00b2720ef0
commit 72618ebf03
1 file changed
+4
@@ -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