summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2016-11-04 12:22:46 +0000
committerSean McGivern <sean@mcgivern.me.uk>2016-11-04 12:22:46 +0000
commit856ef3c303574f9c6554dddf34e6bae5cfa0d4dd (patch)
tree0f03ab90d142cc63ee8b3f2b28cf2ff88a547ccf /app/views
parent5ef2bd192aa9b3ecbfc23e83c6984e2a818fb736 (diff)
parentdcd70453a46f9fbf178382b49ff2b9af1937b982 (diff)
downloadgitlab-ce-856ef3c303574f9c6554dddf34e6bae5cfa0d4dd.tar.gz
Merge branch '24056-guest-sees-some-project-details-and-gets-404' into 'master'
Fix: Guest sees some repository details and gets 404 Closes #24056 See merge request !7222
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 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