Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/runners.rb')
-rw-r--r--lib/api/runners.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/api/runners.rb b/lib/api/runners.rb
index e807d2eccf0..03803ede9fc 100644
--- a/lib/api/runners.rb
+++ b/lib/api/runners.rb
@@ -33,11 +33,7 @@ module API
runner = get_runner(params[:id])
authenticate_show_runner!(runner)
- available_projects_ids = runner.projects.select{ |p| can?(current_user, :read_project, p) }
- .map(&:id) unless current_user.is_admin?
-
- present runner, with: Entities::RunnerDetails, user_is_admin: current_user.is_admin?,
- available_projects_ids: available_projects_ids
+ present runner, with: Entities::RunnerDetails, current_user: current_user
end
# Update runner's details