summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Papa <fabtheman@gmail.com>2019-06-16 12:23:56 -0700
committerFabio Papa <fabtheman@gmail.com>2019-06-16 12:23:56 -0700
commit66b18427755fcc771267a9e3ca87c6d58db4496d (patch)
tree849a487e81f8f1c2c2d6ed07ad3ba9ae21b46e7f
parent3cc3cf978f60b1a0f2c627345deef6f5e82254a0 (diff)
downloadgitlab-ce-66b18427755fcc771267a9e3ca87c6d58db4496d.tar.gz
Update the group policy to allow >= maintainer to create subgroups
All specs passing
-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 ea86858181d..d92bcded19d 100644
--- a/app/policies/group_policy.rb
+++ b/app/policies/group_policy.rb
@@ -109,7 +109,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