Split "Manage documents" permission into create, edit and delete permissions (#12401).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11206 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang committed 2013-01-20 11:38:20 +00:00
1 parent 26016cdc08
commit 48fb02e383
7 files changed
+41 -9

No files matched your search

+3 -1
View File
@@ -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>