diff options
author | Valery Sizov <valery@gitlab.com> | 2016-11-01 17:08:04 +0200 |
---|---|---|
committer | Valery Sizov <valery@gitlab.com> | 2016-11-04 13:06:48 +0200 |
commit | dcd70453a46f9fbf178382b49ff2b9af1937b982 (patch) | |
tree | c536413c619cdf9e95741c808aaaaf0c97c2ca7c /app/views/projects/show.html.haml | |
parent | 73ab9ba5f4dc3925b3473dcbb985440b38b65926 (diff) | |
download | gitlab-ce-dcd70453a46f9fbf178382b49ff2b9af1937b982.tar.gz |
Fix: Guest sees some repository details and gets 404
Diffstat (limited to 'app/views/projects/show.html.haml')
-rw-r--r-- | app/views/projects/show.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/show.html.haml b/app/views/projects/show.html.haml index ba16c641462..d2570598501 100644 --- a/app/views/projects/show.html.haml +++ b/app/views/projects/show.html.haml @@ -12,7 +12,7 @@ = render 'projects/last_push' = render "home_panel" -- if @project.feature_available?(:repository, current_user) +- if current_user && can?(current_user, :download_code, @project) %nav.project-stats{ class: container_class } %ul.nav %li |