Patch #16133 ยป available_watchers_in_project.patch
app/controllers/issues_controller.rb | ||
---|---|---|
429 | 429 |
@priorities = IssuePriority.active |
430 | 430 |
@allowed_statuses = @issue.new_statuses_allowed_to(User.current, @issue.new_record?) |
431 | 431 |
@available_watchers = @issue.watcher_users |
432 |
if @issue.project.users.count <= 20 |
|
433 |
@available_watchers = (@available_watchers + @issue.project.users.sort).uniq |
|
432 |
available_watchers_in_project = @issue.project.users.select{|user| @issue.visible?(user)} |
|
433 |
if available_watchers_in_project.count <= 20 |
|
434 |
@available_watchers = (@available_watchers + available_watchers_in_project.sort).uniq |
|
434 | 435 |
end |
435 | 436 |
end |
436 | 437 |