##// END OF EJS Templates
Prevents author load (#18290)....
Jean-Philippe Lang -
r13194:f095633f2feb
parent child
Show More
@@ -449,7 +449,7 class Issue < ActiveRecord::Base
449 safe_attributes 'is_private',
449 safe_attributes 'is_private',
450 :if => lambda {|issue, user|
450 :if => lambda {|issue, user|
451 user.allowed_to?(:set_issues_private, issue.project) ||
451 user.allowed_to?(:set_issues_private, issue.project) ||
452 (issue.author == user && user.allowed_to?(:set_own_issues_private, issue.project))
452 (issue.author_id == user.id && user.allowed_to?(:set_own_issues_private, issue.project))
453 }
453 }
454
454
455 safe_attributes 'parent_issue_id',
455 safe_attributes 'parent_issue_id',
General Comments 0
You need to be logged in to leave comments. Login now