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

This commit is contained in:
Fabio Papa 2019-06-27 14:17:24 -07:00
parent 9dc5c2ef73
commit 130261c5e9

View file

@ -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