|
|
|
@ -218,7 +218,7 @@ class SubjectsController < ApplicationController
|
|
|
|
|
AND m.user_id=#{current_user.id} AND c.is_delete = 0 AND c.is_end = 0").map(&:id)
|
|
|
|
|
@courses = Course.where(id: course_ids)
|
|
|
|
|
## 云上实验室过滤
|
|
|
|
|
@courses = @courses.where(id: current_laboratory.all_courses.pluck(:id))
|
|
|
|
|
@courses = @courses.where(id: current_laboratory.all_courses)
|
|
|
|
|
|
|
|
|
|
@none_shixun_ids = ShixunSchool.where("school_id != #{current_user.user_extension.try(:school_id).to_i}").pluck(:shixun_id)
|
|
|
|
|
end
|
|
|
|
|