diff --git a/app/controllers/subjects_controller.rb b/app/controllers/subjects_controller.rb index bf5466b1e..ff969e97e 100644 --- a/app/controllers/subjects_controller.rb +++ b/app/controllers/subjects_controller.rb @@ -244,6 +244,8 @@ class SubjectsController < ApplicationController @none_shixun_ids = @subject.shixuns.joins(:shixun_schools) .where("school_id != #{current_user.user_extension.try(:school_id).to_i}").pluck(:id) + logger.info("########:#{current_user.user_extension.try(:school_id)}") + logger.info("########:#{@subject.shixuns.joins(:shixun_schools).pluck("shixun_schools.school_id")}") end def send_to_course