From: Jean-Philippe Lang Date: Sat, 21 Feb 2009 12:58:18 +0000 (+0000) Subject: Do not show the changed files list on the revision page if the user is not allowed... X-Git-Tag: 0.9.0~645 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=79fd564b6143b3bbe75dc215bfd32bd551ebe850;p=redmine.git 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 --- diff --git a/app/views/repositories/revision.rhtml b/app/views/repositories/revision.rhtml index c5bac720b..b60b2a22a 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) %>