summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/helpers/projects_helper.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb
index 3d5f22faf68..8bec7599158 100644
--- a/app/helpers/projects_helper.rb
+++ b/app/helpers/projects_helper.rb
@@ -624,6 +624,7 @@ module ProjectsHelper
def find_file_path
return unless @project && !@project.empty_repo?
+ return unless can?(current_user, :download_code, @project)
ref = @ref || @project.repository.root_ref