|
|
|
@ -118,7 +118,7 @@ class HomeworkCommonsController < ApplicationController
|
|
|
|
|
|
|
|
|
|
# 学生已提交作品且补交(提交)已截止、作品公开、非匿评阶段
|
|
|
|
|
if @work&.work_status.to_i > 0 && (@homework.work_public || @homework.score_open) &&
|
|
|
|
|
((!@homework.anonymous_comment && @homework.end_or_late) || @homework_detail_manual.comment_status > 4)
|
|
|
|
|
((!@homework.anonymous_comment && @homework.end_or_late) || (@homework_detail_manual.comment_status > 4 && @homework.end_or_late))
|
|
|
|
|
@student_works = student_works.where("user_id != #{@work.user_id}")
|
|
|
|
|
|
|
|
|
|
# 匿评、申诉阶段只能看到分配给自己的匿评作品
|
|
|
|
|