|
|
|
@ -122,7 +122,7 @@ class HomeworkCommonsController < ApplicationController
|
|
|
|
|
@student_works = student_works.where("user_id != #{@work.user_id}")
|
|
|
|
|
|
|
|
|
|
# 匿评、申诉阶段只能看到分配给自己的匿评作品
|
|
|
|
|
elsif @work&.work_status.to_i > 0 && @homework.anonymous_comment && @homework_detail_manual.comment_status > 2
|
|
|
|
|
elsif @work&.work_status.to_i > 0 && @homework.anonymous_comment && @homework_detail_manual.comment_status > 2 && @homework_detail_manual.comment_status <= 4
|
|
|
|
|
@is_evaluation = true
|
|
|
|
|
@student_works = student_works.joins(:student_works_evaluation_distributions).where(
|
|
|
|
|
"student_works_evaluation_distributions.user_id = #{@current_user.id}")
|
|
|
|
|