diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-04-04 11:53:29 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-04-04 11:53:29 +0000 |
commit | 8a3151728875f0fc542f0fe7e32e728fe28cd657 (patch) | |
tree | 62285561aaba19e96192b8fc92203da685884096 /lib/redmine.rb | |
parent | ab31a114fd9a972e0d850c3438abaf031ebf84cd (diff) | |
download | redmine-8a3151728875f0fc542f0fe7e32e728fe28cd657.tar.gz redmine-8a3151728875f0fc542f0fe7e32e728fe28cd657.zip |
add bulk edit and bulk update actions for time entries (#7996).
get bulk edit form action working by mapping permissions.
Contributed by Adam Soltys.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5313 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine.rb')
-rw-r--r-- | lib/redmine.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/redmine.rb b/lib/redmine.rb index 631f10946..5ecf2eabf 100644 --- a/lib/redmine.rb +++ b/lib/redmine.rb @@ -86,10 +86,10 @@ Redmine::AccessControl.map do |map| end map.project_module :time_tracking do |map| - map.permission :log_time, {:timelog => [:new, :create, :edit, :update]}, :require => :loggedin + map.permission :log_time, {:timelog => [:new, :create, :edit, :update, :bulk_edit, :bulk_update]}, :require => :loggedin map.permission :view_time_entries, :timelog => [:index, :show], :time_entry_reports => [:report] - map.permission :edit_time_entries, {:timelog => [:new, :create, :edit, :update, :destroy]}, :require => :member - map.permission :edit_own_time_entries, {:timelog => [:new, :create, :edit, :update, :destroy]}, :require => :loggedin + map.permission :edit_time_entries, {:timelog => [:new, :create, :edit, :update, :destroy, :bulk_edit, :bulk_update]}, :require => :member + map.permission :edit_own_time_entries, {:timelog => [:new, :create, :edit, :update, :destroy,:bulk_edit, :bulk_update]}, :require => :loggedin map.permission :manage_project_activities, {:project_enumerations => [:update, :destroy]}, :require => :member end |