diff options
author | Fabio Papa <fabtheman@gmail.com> | 2019-06-27 14:17:24 -0700 |
---|---|---|
committer | Fabio Papa <fabtheman@gmail.com> | 2019-06-27 15:52:37 -0700 |
commit | 7bf0ce2283334752bd88a8eb63aa16e5b4b33864 (patch) | |
tree | 78daf8d91c76426a1a011bfedda5fe67bd3c8684 | |
parent | 50bd9ddf2ec67594eb8c28f2c8fb5b262be2c515 (diff) | |
download | gitlab-ce-7bf0ce2283334752bd88a8eb63aa16e5b4b33864.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 dbec211935d..f32312c6f43 100644 --- a/app/models/group.rb +++ b/app/models/group.rb @@ -418,6 +418,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 |