summaryrefslogtreecommitdiff
path: root/app/policies
diff options
context:
space:
mode:
authorFabio Papa <fabtheman@gmail.com>2019-06-16 12:23:56 -0700
committerFabio Papa <fabtheman@gmail.com>2019-07-19 11:55:45 -0700
commit11f998d9f250bf63abdebc1e0934b39d62f349f6 (patch)
tree9d9853d2f41f3fe1b3fd545573ebf5fd6066107a /app/policies
parentbbb578b0627f86dd8014f228165f9197459ff3e0 (diff)
downloadgitlab-ce-11f998d9f250bf63abdebc1e0934b39d62f349f6.tar.gz
Update the group policy to allow >= maintainer to create subgroups
All specs passing
Diffstat (limited to 'app/policies')
-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 9219283992f..9cb50c0f5fa 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 { owner & nested_groups_supported }.enable :create_subgroup
+ rule { maintainer & nested_groups_supported }.enable :create_subgroup
rule { public_group | logged_in_viewable }.enable :view_globally