diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-02-02 10:50:31 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-02-02 10:50:31 +0000 |
commit | bea49ae24532284ca4ef9ce72733b78f77e480d5 (patch) | |
tree | af4cc8c8774e45178f737b7e3774979c04d13ffa /app/models/journal.rb | |
parent | 4abb82fd7bcdd2cdffdd8778a5d9e2fc6a3857dd (diff) | |
download | redmine-bea49ae24532284ca4ef9ce72733b78f77e480d5.tar.gz redmine-bea49ae24532284ca4ef9ce72733b78f77e480d5.zip |
Administrators can edit issue notes.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1105 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/journal.rb')
-rw-r--r-- | app/models/journal.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/journal.rb b/app/models/journal.rb index d02067a9d..df7308435 100644 --- a/app/models/journal.rb +++ b/app/models/journal.rb @@ -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 |