summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2015-06-23 12:09:11 +0300
committerValery Sizov <vsv2711@gmail.com>2015-06-23 12:09:11 +0300
commitc64c4390bf3830bd076127997808e20eabeb1cb3 (patch)
tree445b7384312666461693e07a2c7194db9823fc5b /app/views
parent01b79e8c2d10cdf0560e5653934f461d876405be (diff)
downloadgitlab-ci-c64c4390bf3830bd076127997808e20eabeb1cb3.tar.gz
no runner notification can see managers only
Diffstat (limited to 'app/views')
-rw-r--r--app/views/projects/show.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/show.html.haml b/app/views/projects/show.html.haml
index 75dc345..c5c2e3f 100644
--- a/app/views/projects/show.html.haml
+++ b/app/views/projects/show.html.haml
@@ -1,6 +1,6 @@
= render 'shared/guide' unless @project.setup_finished?
-- unless @project.any_runners?
+- if current_user && current_user.can_manage_project?(@project.gitlab_id) && !@project.any_runners?
.alert.alert-danger
Builds for this project wont be served unless you configure runners on
= link_to "Runners page", project_runners_path(@project)