Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Papa <fabtheman@gmail.com>2019-06-16 22:23:56 +0300
committerFabio Papa <fabtheman@gmail.com>2019-07-19 21:55:45 +0300
commit11f998d9f250bf63abdebc1e0934b39d62f349f6 (patch)
tree9d9853d2f41f3fe1b3fd545573ebf5fd6066107a /app/policies/group_policy.rb
parentbbb578b0627f86dd8014f228165f9197459ff3e0 (diff)
Update the group policy to allow >= maintainer to create subgroups
All specs passing
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 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