]> source.dussan.org Git - redmine.git/commitdiff
Do not show the changed files list on the revision page if the user is not allowed...
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 21 Feb 2009 12:58:18 +0000 (12:58 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 21 Feb 2009 12:58:18 +0000 (12:58 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2499 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/repositories/revision.rhtml

index c5bac720b87ebeab0bf067ecbe74ce06b556e84c..b60b2a22a49c00067713b9d0b58349bd950547ed 100644 (file)
@@ -12,7 +12,7 @@
     <%= l(:label_next) %>
   <% end -%>
   &#187;&nbsp;
-  
+
   <% 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 @@
 </ul>
 <% end %>
 
+<% if User.current.allowed_to?(:browse_repository, @project) %>
 <h3><%= l(:label_attachment_plural) %></h3>
 <ul id="changes-legend">
 <li class="change change-A"><%= l(:label_added) %></li>
@@ -49,6 +50,7 @@
 <div class="changeset-changes">
 <%= render_changeset_changes %>
 </div>
+<% end %>
 
 <% content_for :header_tags do %>
 <%= stylesheet_link_tag "scm" %>