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
2013-01-20 11:38:20 +00:00
parent 26016cdc08
commit 48fb02e383
7 changed files with 41 additions and 9 deletions
+1 -1
View File
@@ -901,7 +901,7 @@ class UserTest < ActiveSupport::TestCase
should "authorize nearly everything for admin users" do
project = Project.find(1)
assert ! @admin.member_of?(project)
%w(edit_issues delete_issues manage_news manage_documents manage_wiki).each do |p|
%w(edit_issues delete_issues manage_news add_documents manage_wiki).each do |p|
assert_equal true, @admin.allowed_to?(p.to_sym, project)
end
end