summaryrefslogtreecommitdiff
path: root/app/models/group.rb
diff options
context:
space:
mode:
authorFabio Papa <fabtheman@gmail.com>2019-07-01 13:41:32 -0700
committerFabio Papa <fabtheman@gmail.com>2019-07-19 11:55:49 -0700
commitd4c53e1799d4967c20ac771f6628416183985ef4 (patch)
tree0bc24f66e12422be4e76ba92bc18fa61a81499ee /app/models/group.rb
parentb36d78eabc53bb6a457c45b67a65276c85bf2b8a (diff)
downloadgitlab-ce-d4c53e1799d4967c20ac771f6628416183985ef4.tar.gz
Apply changes recomended by merge request coach
Diffstat (limited to 'app/models/group.rb')
-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