..测试用户问题

dev_forum
jingquan huang 5 years ago
parent 80fa553866
commit 6bbb8e050e

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

Loading…
Cancel
Save