diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 411481f0e..d81b3abb3 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -308,7 +308,7 @@ class ApplicationController < ActionController::Base end if !User.current.logged? && Rails.env.development? - User.current = User.find 1 + User.current = User.find 8686 end diff --git a/app/views/weapps/homes/show.json.jbuilder b/app/views/weapps/homes/show.json.jbuilder index bbb5e2fc8..f307d64fe 100644 --- a/app/views/weapps/homes/show.json.jbuilder +++ b/app/views/weapps/homes/show.json.jbuilder @@ -25,5 +25,6 @@ json.courses @courses.each do |course| json.school course.school&.name course_member = @category == "study" ? course.students.where(user_id: @user.id).first : course.teachers.where(user_id: @user.id).first json.sticky course_member.sticky + json.course_identity current_user.course_identity(course) end