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:
Jean-Philippe Lang
2008-02-02 10:50:31 +00:00
parent 4abb82fd7b
commit bea49ae245
13 changed files with 156 additions and 3 deletions
+4
View File
@@ -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