summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2015-06-22 11:29:54 +0300
committerValery Sizov <vsv2711@gmail.com>2015-06-22 11:29:54 +0300
commitd53b41b47934da9784e5a981455e596a9218f72b (patch)
tree5434315eac07b76b2ccd4ea13103be776bcb1841 /app/views
parentebf09aad0f32a86650e080d6832b5b124b7de0e7 (diff)
downloadgitlab-ci-d53b41b47934da9784e5a981455e596a9218f72b.tar.gz
Fix: show builds for public users
Diffstat (limited to 'app/views')
-rw-r--r--app/views/builds/show.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/builds/show.html.haml b/app/views/builds/show.html.haml
index 158ec27..5ddaa3c 100644
--- a/app/views/builds/show.html.haml
+++ b/app/views/builds/show.html.haml
@@ -104,7 +104,7 @@
#{time_ago_in_words(@build.finished_at)} ago
%p
%span.attr-name Runner:
- - if @build.runner && current_user.is_admin
+ - if @build.runner && current_user && current_user.is_admin
\#{link_to "##{@build.runner.id}", admin_runner_path(@build.runner.id)}
- elsif @build.runner
\##{@build.runner.id}