about summary refs log tree commit diff
path: root/app/policies/invite_policy.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/policies/invite_policy.rb')
-rw-r--r--app/policies/invite_policy.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/policies/invite_policy.rb b/app/policies/invite_policy.rb
index a2a65f934..14236f78b 100644
--- a/app/policies/invite_policy.rb
+++ b/app/policies/invite_policy.rb
@@ -9,6 +9,10 @@ class InvitePolicy < ApplicationPolicy
     min_required_role?
   end
 
+  def deactivate_all?
+    admin?
+  end
+
   def destroy?
     owner? || (Setting.min_invite_role == 'admin' ? admin? : staff?)
   end