Fix getting a single EmailDomainBlock (#20846)
parent
c7accdb6ac
commit
0f402ff0eb
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue