Administrators can edit issue notes.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1105 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -49,4 +49,8 @@ class Journal < ActiveRecord::Base
|
||||
c = details.detect {|detail| detail.prop_key == prop}
|
||||
c ? c.value : nil
|
||||
end
|
||||
|
||||
def editable_by?(usr)
|
||||
usr && usr.admin?
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user