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:
authorTomasz Maczukin <tomasz@maczukin.pl>2016-02-04 12:33:29 +0300
committerTomasz Maczukin <tomasz@maczukin.pl>2016-02-19 15:18:47 +0300
commit553bac57d01f103f3f419e8096f30f422781adce (patch)
treebadb3f03a25d930ac2bacd268107b951880de3f3 /lib/api/runners.rb
parentdc32af950821946f5bc3a4e57b4b7eeb0ffb032f (diff)
Add token to runner details output in API
Diffstat (limited to 'lib/api/runners.rb')
-rw-r--r--lib/api/runners.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/runners.rb b/lib/api/runners.rb
index 284909c8db4..15782474369 100644
--- a/lib/api/runners.rb
+++ b/lib/api/runners.rb
@@ -33,7 +33,7 @@ module API
runner = get_runner(params[:id])
can_show_runner?(runner) unless current_user.is_admin?
- present runner, with: Entities::RunnerDetails
+ present runner, with: Entities::RunnerDetails, user_is_admin: current_user.is_admin?
end
# Update runner's details