Commit 039e5348 authored by Fabio Papa's avatar Fabio Papa

Make Group#subgroup_creation_level return Owner if it is nil in DB

parent de906e36
...@@ -417,7 +417,7 @@ class Group < Namespace ...@@ -417,7 +417,7 @@ class Group < Namespace
end end
def subgroup_creation_level def subgroup_creation_level
super || ::Gitlab::Access::MAINTAINER_SUBGROUP_ACCESS super || ::Gitlab::Access::OWNER_SUBGROUP_ACCESS
end end
private private
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment