summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorFabio Papa <fabtheman@gmail.com>2019-07-10 12:27:12 -0700
committerFabio Papa <fabtheman@gmail.com>2019-07-19 14:26:44 -0700
commit039e5348d0aaf45795e0ebf5d74ec59eb00dc91f (patch)
treedab830c52c2f817ba2e5f0d318effcf2a6917006 /app
parentde906e3614167e48e618275f846cea5a191a96f3 (diff)
downloadgitlab-ce-039e5348d0aaf45795e0ebf5d74ec59eb00dc91f.tar.gz
Make Group#subgroup_creation_level return Owner if it is nil in DB
Diffstat (limited to 'app')
-rw-r--r--app/models/group.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/group.rb b/app/models/group.rb
index 3f80c1373f1..37f30552b39 100644
--- a/app/models/group.rb
+++ b/app/models/group.rb
@@ -417,7 +417,7 @@ class Group < Namespace
end
def subgroup_creation_level
- super || ::Gitlab::Access::MAINTAINER_SUBGROUP_ACCESS
+ super || ::Gitlab::Access::OWNER_SUBGROUP_ACCESS
end
private