Allow admin to deactivate invite created by users (#5860)
This commit is contained in:
committed by
Eugen Rochko
parent
9927df83ad
commit
df03042a6e
@ -10,7 +10,7 @@ class InvitePolicy < ApplicationPolicy
|
||||
end
|
||||
|
||||
def destroy?
|
||||
owner? || staff?
|
||||
owner? || (Setting.min_invite_role == 'admin' ? admin? : staff?)
|
||||
end
|
||||
|
||||
private
|
||||
|
Reference in New Issue
Block a user