summaryrefslogtreecommitdiff
path: root/app/services/ci/runners/assign_runner_service.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-08-05 15:12:12 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-08-05 15:12:12 +0000
commit8ec882085e734458ffe0fff8e2e4b72bc3871419 (patch)
tree6869bb67f3e66e9de828bc47a08577efa1e296c6 /app/services/ci/runners/assign_runner_service.rb
parentf63850d9d6c3a81e78c93995c904ed6c0785ef19 (diff)
downloadgitlab-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.rb2
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)