From 79fd564b6143b3bbe75dc215bfd32bd551ebe850 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 21 Feb 2009 12:58:18 +0000 Subject: [PATCH] Do not show the changed files list on the revision page if the user is not allowed to browse the repository (#2762). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2499 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/repositories/revision.rhtml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/repositories/revision.rhtml b/app/views/repositories/revision.rhtml index c5bac720..b60b2a22 100644 --- a/app/views/repositories/revision.rhtml +++ b/app/views/repositories/revision.rhtml @@ -12,7 +12,7 @@ <%= l(:label_next) %> <% end -%> »  - + <% form_tag({:controller => 'repositories', :action => 'revision', :id => @project, :rev => nil}, :method => :get) do %> <%= text_field_tag 'rev', @rev, :size => 5 %> <%= submit_tag 'OK', :name => nil %> @@ -35,6 +35,7 @@ <% end %> +<% if User.current.allowed_to?(:browse_repository, @project) %>

<%= l(:label_attachment_plural) %>