|
|
@ -67,7 +67,7 @@ class Exercise < ApplicationRecord
|
|
|
|
# 分班权限的老师可见的作品列表
|
|
|
|
# 分班权限的老师可见的作品列表
|
|
|
|
def all_exercise_users user_id
|
|
|
|
def all_exercise_users user_id
|
|
|
|
# member = course.course_member(user_id)
|
|
|
|
# member = course.course_member(user_id)
|
|
|
|
teacher_course_groups = course.teacher_course_groups.get_user_groups
|
|
|
|
teacher_course_groups = course.teacher_course_groups.get_user_groups(user_id)
|
|
|
|
ex_users = self.all_works
|
|
|
|
ex_users = self.all_works
|
|
|
|
# 有分班权限的统计管理的分班且已发布的学生情况
|
|
|
|
# 有分班权限的统计管理的分班且已发布的学生情况
|
|
|
|
if teacher_course_groups.exists?
|
|
|
|
if teacher_course_groups.exists?
|
|
|
|