Browse Source

add: debug user

pull/347/head
yystopf 1 year ago
parent
commit
2033b2cbf0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/controllers/application_controller.rb

+ 1
- 1
app/controllers/application_controller.rb View File

@@ -356,7 +356,7 @@ class ApplicationController < ActionController::Base
User.current = User.find 8686
elsif params[:debug] == 'admin'
logger.info "@@@@@@@@@@@@@@@@@@@@@@ debug mode....."
user = User.find 36480
user = User.find 1
User.current = user
cookies.signed[:user_id] = user.id
end


Loading…
Cancel
Save