summaryrefslogtreecommitdiffstats
path: root/lib/redmine.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-03-14 21:17:09 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-03-14 21:17:09 +0000
commit993b60d61eb927cff21ea0b06c1631eb986f6a51 (patch)
tree940e5d4f7c08e2e8dfcf02839c63cac8587c44a1 /lib/redmine.rb
parent4957752d122388f15738b47b2872465da81a6d32 (diff)
downloadredmine-993b60d61eb927cff21ea0b06c1631eb986f6a51.tar.gz
redmine-993b60d61eb927cff21ea0b06c1631eb986f6a51.zip
Adds 2 permissions (closes #859):
* edit_time_entries: lets a user edit/delete any time entry * edit_own_time_entries: lets a user edit/delete its own time entries only git-svn-id: http://redmine.rubyforge.org/svn/trunk@1249 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine.rb')
-rw-r--r--lib/redmine.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/redmine.rb b/lib/redmine.rb
index 4c5cbdaae..5443eef4a 100644
--- a/lib/redmine.rb
+++ b/lib/redmine.rb
@@ -49,6 +49,8 @@ Redmine::AccessControl.map do |map|
map.project_module :time_tracking do |map|
map.permission :log_time, {:timelog => :edit}, :require => :loggedin
map.permission :view_time_entries, :timelog => [:details, :report]
+ map.permission :edit_time_entries, {:timelog => [:edit, :destroy]}, :require => :member
+ map.permission :edit_own_time_entries, {:timelog => [:edit, :destroy]}, :require => :loggedin
end
map.project_module :news do |map|