|
|
@ -508,7 +508,7 @@ class StudentWorkController < ApplicationController
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
@tab = params[:tab].nil? ? 1 : params[:tab].to_i
|
|
|
|
@tab = params[:tab].nil? ? 1 : params[:tab].to_i
|
|
|
|
if User.current.member_of_course?(@homework.course) && params[:order].nil? && params[:sort].nil? && params[:name].nil? && params[:group].nil? && params[:page].nil?
|
|
|
|
if (User.current.member_of_course?(@homework.course) || User.current.admin?) && params[:order].nil? && params[:sort].nil? && params[:name].nil? && params[:group].nil? && params[:page].nil?
|
|
|
|
if !@course.is_end && @homework.homework_type == 4 && @homework.homework_detail_manual.comment_status > 0 && (@homework.end_time > Time.now || (@homework.end_time <= Time.now && @homework.allow_late))
|
|
|
|
if !@course.is_end && @homework.homework_type == 4 && @homework.homework_detail_manual.comment_status > 0 && (@homework.end_time > Time.now || (@homework.end_time <= Time.now && @homework.allow_late))
|
|
|
|
update_shixun_work_status @homework
|
|
|
|
update_shixun_work_status @homework
|
|
|
|
end
|
|
|
|
end
|
|
|
|