diff options
author | Fabio Papa <fabtheman@gmail.com> | 2019-06-28 00:17:24 +0300 |
---|---|---|
committer | Fabio Papa <fabtheman@gmail.com> | 2019-07-19 21:55:46 +0300 |
commit | 130261c5e984ae022543e08cb7ba4a82b1594612 (patch) | |
tree | ab3a14a9a4396141856f62ad3ba1ea45b70ab73c /app/models/group.rb | |
parent | 9dc5c2ef73682c7c6ff754fe983ac3a3eff11976 (diff) |
Make the group model return maintainer level when it is not set
Diffstat (limited to 'app/models/group.rb')
-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 |