diff --git a/app/controllers/graduation_tasks_controller.rb b/app/controllers/graduation_tasks_controller.rb index 076965899..836ece3e9 100644 --- a/app/controllers/graduation_tasks_controller.rb +++ b/app/controllers/graduation_tasks_controller.rb @@ -499,7 +499,9 @@ class GraduationTasksController < ApplicationController end def cross_comment_setting - @comment_status + @comment_status = @task.cross_comment ? @task.comment_status : (params[:comment_status] || 2) + user_ids = @course.teacher_group_user_ids(current_user.id) + @work_list = @task.graduation_works.where(user_id: user_ids).includes(user: [:user_extension]) end private