diff options
author | Fabio Papa <fabtheman@gmail.com> | 2019-06-27 14:17:24 -0700 |
---|---|---|
committer | Fabio Papa <fabtheman@gmail.com> | 2019-07-02 11:36:03 -0700 |
commit | 6175ff7a9b6bc97929a0b81bfe70ff39eaffb58c (patch) | |
tree | 4907ffc3a09e1b75ce4b1823ed4090f89a945509 | |
parent | 84c1455c5b26017ad28ad0f48433d8f41d8b95d3 (diff) | |
download | gitlab-ce-6175ff7a9b6bc97929a0b81bfe70ff39eaffb58c.tar.gz |
Make the group model return maintainer level when it is not set
-rw-r--r-- | app/models/group.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/group.rb b/app/models/group.rb index 8e89c7ecfb1..44bc6c8288a 100644 --- a/app/models/group.rb +++ b/app/models/group.rb @@ -414,6 +414,10 @@ class Group < Namespace super || ::Gitlab::CurrentSettings.default_project_creation end + def subgroup_creation_level + super || ::Gitlab::Access::MAINTAINER_SUBGROUP_ACCESS + end + private def update_two_factor_requirement |