Skip to content

Commit 79fd564

Browse files
committed
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
1 parent 9c4a86d commit 79fd564

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: app/views/repositories/revision.rhtml

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<%= l(:label_next) %>
1313
<% end -%>
1414
&#187;&nbsp;
15-
15+
1616
<% form_tag({:controller => 'repositories', :action => 'revision', :id => @project, :rev => nil}, :method => :get) do %>
1717
<%= text_field_tag 'rev', @rev, :size => 5 %>
1818
<%= submit_tag 'OK', :name => nil %>
@@ -35,6 +35,7 @@
3535
</ul>
3636
<% end %>
3737

38+
<% if User.current.allowed_to?(:browse_repository, @project) %>
3839
<h3><%= l(:label_attachment_plural) %></h3>
3940
<ul id="changes-legend">
4041
<li class="change change-A"><%= l(:label_added) %></li>
@@ -49,6 +50,7 @@
4950
<div class="changeset-changes">
5051
<%= render_changeset_changes %>
5152
</div>
53+
<% end %>
5254

5355
<% content_for :header_tags do %>
5456
<%= stylesheet_link_tag "scm" %>

0 commit comments

Comments
 (0)