diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-05 15:12:12 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-05 15:12:12 +0000 |
commit | 8ec882085e734458ffe0fff8e2e4b72bc3871419 (patch) | |
tree | 6869bb67f3e66e9de828bc47a08577efa1e296c6 /app/services/ci/runners/assign_runner_service.rb | |
parent | f63850d9d6c3a81e78c93995c904ed6c0785ef19 (diff) | |
download | gitlab-ce-8ec882085e734458ffe0fff8e2e4b72bc3871419.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services/ci/runners/assign_runner_service.rb')
-rw-r--r-- | app/services/ci/runners/assign_runner_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/ci/runners/assign_runner_service.rb b/app/services/ci/runners/assign_runner_service.rb index b315afd2efe..290f945cc72 100644 --- a/app/services/ci/runners/assign_runner_service.rb +++ b/app/services/ci/runners/assign_runner_service.rb @@ -14,7 +14,7 @@ module Ci def execute unless @user.present? && @user.can?(:assign_runner, @runner) - return ServiceResponse.error(message: 'user not allowed to assign runner') + return ServiceResponse.error(message: 'user not allowed to assign runner', http_status: :forbidden) end if @runner.assign_to(@project, @user) |