summaryrefslogtreecommitdiff
path: root/app/views/layouts/_search.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/layouts/_search.html.haml')
-rw-r--r--app/views/layouts/_search.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/layouts/_search.html.haml b/app/views/layouts/_search.html.haml
index 0350dc82e46..daf2c582de2 100644
--- a/app/views/layouts/_search.html.haml
+++ b/app/views/layouts/_search.html.haml
@@ -29,7 +29,7 @@
= hidden_field_tag :scope, search_context.scope
= hidden_field_tag :search_code, search_context.code_search?
- - ref = search_context.ref if can?(current_user, :download_code, search_context.project)
+ - ref = search_context.ref if can?(current_user, :read_code, search_context.project)
= hidden_field_tag :snippets, search_context.for_snippets?
= hidden_field_tag :repository_ref, ref
= hidden_field_tag :nav_source, 'navbar'