@@ -449,7 +449,7 class Issue < ActiveRecord::Base | |||
|
449 | 449 | safe_attributes 'is_private', |
|
450 | 450 | :if => lambda {|issue, user| |
|
451 | 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 | 455 | safe_attributes 'parent_issue_id', |
General Comments 0
You need to be logged in to leave comments.
Login now