diff options
author | GitLab Release Tools Bot <delivery-team+release-tools@gitlab.com> | 2021-06-01 18:25:56 +0000 |
---|---|---|
committer | GitLab Release Tools Bot <delivery-team+release-tools@gitlab.com> | 2021-06-01 18:25:56 +0000 |
commit | f45007ed211f97a416bd9362b88ab450bd618e02 (patch) | |
tree | 80cd24b9c0ed31e1f65bef353561580b286484d2 /lib/api/lint.rb | |
parent | 46446d3c712db4f42babb21c454df43f2167847a (diff) | |
parent | e1e95e4aa59a01ea53c41f68ec6a099d41d2a838 (diff) | |
download | gitlab-ce-13-10-stable.tar.gz |
Merge remote-tracking branch 'dev/13-10-stable' into 13-10-stable13-10-stable
Diffstat (limited to 'lib/api/lint.rb')
-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 |