毕设作品列表:学生的查看作品权限调整

dev_forum
cxt 5 years ago
parent 83446c1b5c
commit 9daed3b1ef

@ -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
Loading…
Cancel
Save