summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-12-26 14:53:50 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-12-26 14:53:50 +0200
commitaa54482a37df5b122e35029a316094c2f55d5044 (patch)
treedd10b8b1e28abaafe013683d05c69aefe6ef696b /app/views
parent573d554c6927f0e6804c986af7d8837e0abd6cd9 (diff)
downloadgitlab-ce-aa54482a37df5b122e35029a316094c2f55d5044.tar.gz
Fix no-ssh message for non logged in user
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
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 14d1ad956e3..af6e4567c1b 100644
--- a/app/views/projects/show.html.haml
+++ b/app/views/projects/show.html.haml
@@ -1,4 +1,4 @@
-- if can?(current_user, :download_code, @project)
+- if current_user && can?(current_user, :download_code, @project)
= render 'shared/no_ssh'
= render "home_panel"