summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/policies/global_policy.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/policies/global_policy.rb b/app/policies/global_policy.rb
index 94a2906444a..3c2fbe6b56b 100644
--- a/app/policies/global_policy.rb
+++ b/app/policies/global_policy.rb
@@ -1,6 +1,7 @@
class GlobalPolicy < BasePolicy
def rules
return unless @user
+
can! :create_group if @user.can_create_group
can! :read_users_list
end