Merge branch 'szzh' into develop

This commit is contained in:
sw 2015-07-18 17:51:49 +08:00
commit e4f988785f
1 changed files with 1 additions and 1 deletions

View File

@ -759,7 +759,7 @@ class CoursesService
# 获取某次作业的所有作业列表
def student_work_list params,current_user
is_teacher = User.current.allowed_to?(:as_teacher,Course.find(params[:course_id]))
is_teacher = current_user.allowed_to?(:as_teacher,Course.find(params[:course_id]))
homework = HomeworkCommon.find(params[:homework_id])
student_works = []
#老师 || 非匿评作业 || 匿评结束 显示所有的作品