From aa54482a37df5b122e35029a316094c2f55d5044 Mon Sep 17 00:00:00 2001
From: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Date: Fri, 26 Dec 2014 14:53:50 +0200
Subject: [PATCH] Fix no-ssh message for non logged in user

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
---
 app/views/projects/show.html.haml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/views/projects/show.html.haml b/app/views/projects/show.html.haml
index 14d1ad956e3b..af6e4567c1b7 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"
-- 
GitLab