summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Papa <fabtheman@gmail.com>2019-06-27 14:17:24 -0700
committerFabio Papa <fabtheman@gmail.com>2019-07-01 14:01:35 -0700
commitd4b2ff2e2295d8a40b019c4c3bc1e9669c89ed82 (patch)
treed42218775304436834a47b4bbd3fa9d7196214fa
parent26c6e75d9ef48217eef4ce9ce3b09642e5a73a28 (diff)
downloadgitlab-ce-d4b2ff2e2295d8a40b019c4c3bc1e9669c89ed82.tar.gz
Make the group model return maintainer level when it is not set
-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 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