summaryrefslogtreecommitdiff
path: root/app/policies/group_policy.rb
diff options
context:
space:
mode:
authorFabio Papa <fabtheman@gmail.com>2019-06-27 14:46:48 -0700
committerFabio Papa <fabtheman@gmail.com>2019-07-19 11:55:45 -0700
commitfaa8b69f2b6dd4d6d9117a9988d1232f94c418f1 (patch)
tree2288c9381b3c6fe6e1adc1a1d74274ef8a286c29 /app/policies/group_policy.rb
parent7d061212b12a400acfa9c8f34e022e352e77cb64 (diff)
downloadgitlab-ce-faa8b69f2b6dd4d6d9117a9988d1232f94c418f1.tar.gz
Reset group policy to only allow >= owners to create subgroups
Diffstat (limited to 'app/policies/group_policy.rb')
-rw-r--r--app/policies/group_policy.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/policies/group_policy.rb b/app/policies/group_policy.rb
index 9cb50c0f5fa..9219283992f 100644
--- a/app/policies/group_policy.rb
+++ b/app/policies/group_policy.rb
@@ -104,7 +104,7 @@ class GroupPolicy < BasePolicy
enable :read_nested_project_resources
end
- rule { maintainer & nested_groups_supported }.enable :create_subgroup
+ rule { owner & nested_groups_supported }.enable :create_subgroup
rule { public_group | logged_in_viewable }.enable :view_globally