diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-05-31 14:45:01 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-05-31 14:45:27 +0300 |
commit | 185d6a2578f64ffafd80bea5314915811a54486a (patch) | |
tree | 90d435f1c353da19b799046f66aa7abbf1bd778d /lib/api | |
parent | 4530f5d0bdc9b2f60eed2146eaf1b6f35fc53b0e (diff) |
Add latest changes from gitlab-org/security/gitlab@13-12-stable-ee
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/lint.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/lint.rb b/lib/api/lint.rb index e0806674c6a..945cdf3edb2 100644 --- a/lib/api/lint.rb +++ b/lib/api/lint.rb @@ -11,7 +11,7 @@ module API optional :include_merged_yaml, type: Boolean, desc: 'Whether or not to include merged CI config yaml in the response' end post '/lint' do - unauthorized! if Gitlab::CurrentSettings.signup_disabled? && current_user.nil? + unauthorized! if (Gitlab::CurrentSettings.signup_disabled? || Gitlab::CurrentSettings.signup_limited?) && current_user.nil? result = Gitlab::Ci::YamlProcessor.new(params[:content], user: current_user).execute |