dev_forum
cxt 5 years ago
parent 7a65ebaf76
commit 91bcb7bba4

@ -232,6 +232,14 @@ 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
elsif params[:debug] == 'student'
User.current = User.find 8686
elsif params[:debug] == 'admin'
User.current = User.find 1
end
# User.current = User.find 81403 # User.current = User.find 81403
end end

Loading…
Cancel
Save