summaryrefslogtreecommitdiffstats
path: root/app/helpers/journals_helper.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-02-16 13:19:33 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-02-16 13:19:33 +0000
commit1c8cf4ef8338736ebcaa905f8932545a24e817c6 (patch)
tree1511225a9139cd3f2113c9b908a88c70f4166958 /app/helpers/journals_helper.rb
parentabb0b15407b33cbe50dc263474631c5bfcf2bd5f (diff)
downloadredmine-1c8cf4ef8338736ebcaa905f8932545a24e817c6.tar.gz
redmine-1c8cf4ef8338736ebcaa905f8932545a24e817c6.zip
Added the following permissions (#527, #585, #627):
* edit_issue_notes: let user edit any notes * edit_own_issue_notes: let user edit his own notes only git-svn-id: http://redmine.rubyforge.org/svn/trunk@1152 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/journals_helper.rb')
-rw-r--r--app/helpers/journals_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/journals_helper.rb b/app/helpers/journals_helper.rb
index 2f902432d..234bfabc0 100644
--- a/app/helpers/journals_helper.rb
+++ b/app/helpers/journals_helper.rb
@@ -19,7 +19,7 @@ module JournalsHelper
def render_notes(journal, options={})
content = ''
editable = journal.editable_by?(User.current)
- if editable
+ if editable && !journal.notes.blank?
links = []
links << link_to_in_place_notes_editor(image_tag('edit.png'), "journal-#{journal.id}-notes",
{ :controller => 'journals', :action => 'edit', :id => journal },