Skip to content
Snippets Groups Projects
Commit 7b7c1494 authored by Fabio Papa's avatar Fabio Papa
Browse files

Apply changes recomended by merge request coach

parent 0f7366f2
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
# coding: utf-8
# frozen_string_literal: true
 
require 'spec_helper'
Loading
Loading
@@ -88,14 +87,6 @@ describe Groups::CreateService, '#execute' do
 
it { is_expected.to be_persisted }
end
context 'as maintainer' do
before do
group.add_maintainer(user)
end
it { is_expected.to be_persisted }
end
end
end
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment