diff options
author | Fabio Papa <fabtheman@gmail.com> | 2019-06-16 12:23:56 -0700 |
---|---|---|
committer | Fabio Papa <fabtheman@gmail.com> | 2019-07-02 11:36:00 -0700 |
commit | e520893b3450d6b9da4fbe74da943fbfcc24fedd (patch) | |
tree | 71e163ab71c61856f305849902e741be5b0deed4 | |
parent | 6d50040c9469d2b1b6c137897b5d7403f3e3b7d5 (diff) | |
download | gitlab-ce-e520893b3450d6b9da4fbe74da943fbfcc24fedd.tar.gz |
Update the group policy to allow >= maintainer to create subgroups
All specs passing
-rw-r--r-- | app/policies/group_policy.rb | 2 |
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 |