mirror of
https://github.com/redmine/redmine.git
synced 2026-07-12 11:11:58 +02:00
Prevents author load (#18290).
Patch by Ondřej Ezr. git-svn-id: http://svn.redmine.org/redmine/trunk@13576 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -449,7 +449,7 @@ class Issue < ActiveRecord::Base
|
||||
safe_attributes 'is_private',
|
||||
:if => lambda {|issue, user|
|
||||
user.allowed_to?(:set_issues_private, issue.project) ||
|
||||
(issue.author == user && user.allowed_to?(:set_own_issues_private, issue.project))
|
||||
(issue.author_id == user.id && user.allowed_to?(:set_own_issues_private, issue.project))
|
||||
}
|
||||
|
||||
safe_attributes 'parent_issue_id',
|
||||
|
||||
Reference in New Issue
Block a user