diff options
author | Fabio Papa <fabtheman@gmail.com> | 2019-06-27 14:17:24 -0700 |
---|---|---|
committer | Fabio Papa <fabtheman@gmail.com> | 2019-07-05 08:44:17 -0700 |
commit | 610b3fedafda079b33e37d39f3e0f3b71ab5ecab (patch) | |
tree | 1de115db34eb2d8a9d9b51da88077e4bdd63b4a9 | |
parent | 0a2a6aae44c6d06bb8ebc24f5f94195ab43a5e92 (diff) | |
download | gitlab-ce-610b3fedafda079b33e37d39f3e0f3b71ab5ecab.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 9520db1bc0a..3f80c1373f1 100644 --- a/app/models/group.rb +++ b/app/models/group.rb @@ -416,6 +416,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 |