Commit 130261c5 authored by Fabio Papa's avatar Fabio Papa

Make the group model return maintainer level when it is not set

parent 9dc5c2ef
...@@ -416,6 +416,10 @@ class Group < Namespace ...@@ -416,6 +416,10 @@ class Group < Namespace
super || ::Gitlab::CurrentSettings.default_project_creation super || ::Gitlab::CurrentSettings.default_project_creation
end end
def subgroup_creation_level
super || ::Gitlab::Access::MAINTAINER_SUBGROUP_ACCESS
end
private private
def update_two_factor_requirement def update_two_factor_requirement
......
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