Mercurial > hg > soundsoftware-site
diff app/models/issue.rb @ 145:e80647437550 live
Issue #31: issue submitters and assignees are added to the watchers list.
incomplete: there is no option to select/unselect the assignee.
author | luisf |
---|---|
date | Thu, 20 Jan 2011 13:08:43 +0000 |
parents | e0c08b2211ac |
children | 857ac9ccf613 |
line wrap: on
line diff
--- a/app/models/issue.rb Wed Jan 12 17:06:18 2011 +0000 +++ b/app/models/issue.rb Thu Jan 20 13:08:43 2011 +0000 @@ -90,7 +90,7 @@ after_save :reschedule_following_issues, :update_nested_set_attributes, :update_parent_attributes, :create_journal after_destroy :destroy_children after_destroy :update_parent_attributes - + # Returns true if usr or current user is allowed to view the issue def visible?(usr=nil) (usr || User.current).allowed_to?(:view_issues, self.project)