From 48fb02e3839c30667733e59415d98c373467876b Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 20 Jan 2013 11:38:20 +0000 Subject: 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 --- app/views/documents/index.html.erb | 2 +- app/views/documents/show.html.erb | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'app/views/documents') diff --git a/app/views/documents/index.html.erb b/app/views/documents/index.html.erb index 28fc74684..84567741e 100644 --- a/app/views/documents/index.html.erb +++ b/app/views/documents/index.html.erb @@ -1,6 +1,6 @@
<%= link_to l(:label_document_new), new_project_document_path(@project), :class => 'icon icon-add', - :onclick => 'showAndScrollTo("add-document", "document_title"); return false;' if User.current.allowed_to?(:manage_documents, @project) %> + :onclick => 'showAndScrollTo("add-document", "document_title"); return false;' if User.current.allowed_to?(:add_documents, @project) %>