From 8f06b77ccbdadf8969d54245cd17e2e59c33634a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=A4fer?= Date: Sat, 7 Apr 2012 15:59:51 +0200 Subject: [PATCH] correct 'edit own issue notes' permission #966 --- app/models/issue.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/issue.rb b/app/models/issue.rb index a57e3199..0ec8fcd6 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -712,7 +712,7 @@ class Issue < ActiveRecord::Base # The default assumption is that journals have the same permissions # as the journaled object, issue notes have separate permissions though def journal_editable_by?(journal, user) - return true if journal.author == user && user.allowed_to?(:edit_own_issue_notes, project) + return true if journal.user == user && user.allowed_to?(:edit_own_issue_notes, project) user.allowed_to? :edit_issue_notes, project end