|
|
@ -63,7 +63,7 @@ if @task.published? || @user_course_identity < Course::STUDENT
|
|
|
|
json.late_penalty work.late_penalty if @task.allow_late
|
|
|
|
json.late_penalty work.late_penalty if @task.allow_late
|
|
|
|
json.final_score work_final_score work, @current_user, @user_course_identity
|
|
|
|
json.final_score work_final_score work, @current_user, @user_course_identity
|
|
|
|
json.assign @assign_power
|
|
|
|
json.assign @assign_power
|
|
|
|
json.view_work @view_work || @current_user.id == work.user_id
|
|
|
|
json.view_work @view_work || (@current_user.id == work.user_id && work.work_status != 0)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|