Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorFabio Papa <fabtheman@gmail.com>2019-07-01 23:41:32 +0300
committerFabio Papa <fabtheman@gmail.com>2019-07-19 23:14:21 +0300
commit7b7c14940097612140c71164481a371688d961b2 (patch)
treeb75314f2209c100f3d1b58c849e4e4a57070833d /app
parent0f7366f29d2db81bc38bf7470f80d7e1b91de967 (diff)
Apply changes recomended by merge request coach
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