diff options
author | Fabio Papa <fabtheman@gmail.com> | 2019-06-28 00:46:48 +0300 |
---|---|---|
committer | Fabio Papa <fabtheman@gmail.com> | 2019-07-19 21:55:45 +0300 |
commit | faa8b69f2b6dd4d6d9117a9988d1232f94c418f1 (patch) | |
tree | 2288c9381b3c6fe6e1adc1a1d74274ef8a286c29 /app/policies | |
parent | 7d061212b12a400acfa9c8f34e022e352e77cb64 (diff) |
Reset group policy to only allow >= owners to create subgroups
Diffstat (limited to 'app/policies')
-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 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 |