Defect #30731 » fix-30731.patch
app/views/repositories/_revisions.html.erb | ||
---|---|---|
21 | 21 |
:method => :get |
22 | 22 |
) do %> |
23 | 23 |
<% show_diff = revisions.size > 1 %> |
24 |
<%= submit_tag(l(:label_view_diff), :name => nil) if show_diff %> |
|
24 |
<%= submit_tag(l(:label_view_diff), :name => nil) if show_diff && User.current.allowed_to?(:browse_repository, @repository.project) %>
|
|
25 | 25 |
<table class="list changesets"> |
26 | 26 |
<thead><tr> |
27 | 27 |
<th>#</th> |
... | ... | |
49 | 49 |
<% end %> |
50 | 50 |
</tbody> |
51 | 51 |
</table> |
52 |
<%= submit_tag(l(:label_view_diff), :name => nil) if show_diff %> |
|
52 |
<%= submit_tag(l(:label_view_diff), :name => nil) if show_diff && User.current.allowed_to?(:browse_repository, @repository.project) %>
|
|
53 | 53 |
<% end %> |
54 | 54 |
</div> |