|
|
|
@ -233,16 +233,6 @@ class ApplicationController < ActionController::Base
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
# User.current = User.find 81403
|
|
|
|
|
|
|
|
|
|
if params[:debug] == 'teacher' #todo 为了测试,记得讲debug删除
|
|
|
|
|
User.current = User.find 81403
|
|
|
|
|
elsif params[:debug] == 'student'
|
|
|
|
|
User.current = User.find 8686
|
|
|
|
|
elsif params[:debug] == 'admin'
|
|
|
|
|
User.current = User.find 1
|
|
|
|
|
elsif params[:debug]
|
|
|
|
|
User.current = User.find_by_login params[:debug]
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
# Sets the logged in user
|
|
|
|
|