diff --git a/app/controllers/homework_attach_controller.rb b/app/controllers/homework_attach_controller.rb index 28bac9627..816ee0bf8 100644 --- a/app/controllers/homework_attach_controller.rb +++ b/app/controllers/homework_attach_controller.rb @@ -570,9 +570,6 @@ class HomeworkAttachController < ApplicationController #获取课程的老师列表 def find_course_teachers course - t = [] - course.members.map{|m| t << m.user_id if m.user.allowed_to?(:as_teacher,course)} - teachers = "(" teacher_members = searchTeacherAndAssistant(course) teacher_members.each do |member|