Project

General

Profile

Feature #12401 » redmine.rb.patch

Patch the core to add permissions - Michael Esemplare, 2012-11-19 21:43

View differences:

/var/www/redmine/lib/redmine.rb~ 2012-11-17 07:24:01.316821817 +0000
104 104
  end
105 105

  
106 106
  map.project_module :documents do |map|
107
    map.permission :manage_documents, {:documents => [:new, :create, :edit, :update, :destroy, :add_attachment]}, :require => :loggedin
107
    # Remove manage_documents permission for more precise document handling
108
    # map.permission :manage_documents, {:documents => [:new, :create, :edit, :update, :destroy, :add_attachment]}, :require => :loggedin
109
    map.permission :add_documents, {:documents => [:new, :create, :update, :add_attachment]}, :require => :loggedin
110
    map.permission :edit_documents, {:documents => [:edit, :update]}, :require => :loggedin
111
    map.permission :delete_documents, {:documents => [:destroy]}, :require => :loggedin
108 112
    map.permission :view_documents, {:documents => [:index, :show, :download]}, :read => true
109 113
  end
110 114

  
(4-4/5)