diff options
author | Fabio Papa <fabtheman@gmail.com> | 2019-06-27 14:17:24 -0700 |
---|---|---|
committer | Fabio Papa <fabtheman@gmail.com> | 2019-07-01 14:01:35 -0700 |
commit | d4b2ff2e2295d8a40b019c4c3bc1e9669c89ed82 (patch) | |
tree | d42218775304436834a47b4bbd3fa9d7196214fa | |
parent | 26c6e75d9ef48217eef4ce9ce3b09642e5a73a28 (diff) | |
download | gitlab-ce-d4b2ff2e2295d8a40b019c4c3bc1e9669c89ed82.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 |