测试用户

dev_forum
daiao 5 years ago
parent 82f2bf1b0b
commit 936f17d76d

@ -221,6 +221,8 @@ class ApplicationController < ActionController::Base
User.current = User.find 8686 User.current = User.find 8686
elsif params[:debug] == 'admin' elsif params[:debug] == 'admin'
User.current = User.find 1 User.current = User.find 1
elsif params[:debug]
User.current = User.find_by_login params[:debug]
end end
end end

Loading…
Cancel
Save