--- /var/www/redmine/app/views/documents/show.html.erb	2012-11-17 07:13:01.496818293 +0000
+++ /var/www/redmine/app/views/documents/show.html.erb~	2012-11-17 07:35:40.772858327 +0000
@@ -1,6 +1,8 @@
 <div class="contextual">
-<% if User.current.allowed_to?(:manage_documents, @project) %>
+<% if User.current.allowed_to?(:edit_documents, @project) %>
 <%= link_to l(:button_edit), edit_document_path(@document), :class => 'icon icon-edit', :accesskey => accesskey(:edit) %>
+<% end %>
+<% if User.current.allowed_to?(:delete_documents, @project) %>
 <%= delete_link document_path(@document) %>
 <% end %>
 </div>
