summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorFabio Papa <fabtheman@gmail.com>2019-06-27 14:17:24 -0700
committerFabio Papa <fabtheman@gmail.com>2019-07-19 12:34:27 -0700
commit6f3b2e07dc394477636e7ea40749f8a7f51e3de7 (patch)
tree7b7f1af3c6d0b45844310f9cf57a9787f246589f /app
parent720dded1d54a0bae7262e2477b744cd04f0635c1 (diff)
downloadgitlab-ce-6f3b2e07dc394477636e7ea40749f8a7f51e3de7.tar.gz
Make the group model return maintainer level when it is not set
Diffstat (limited to 'app')
-rw-r--r--app/models/group.rb4
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