Browse Source

add test User.current

pull/319/head
nigel007 5 years ago
parent
commit
e05fc89a92
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      app/controllers/application_controller.rb

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

@@ -343,12 +343,12 @@ class ApplicationController < ActionController::Base
User.current = User.find 8686
elsif params[:debug] == 'admin'
logger.info "@@@@@@@@@@@@@@@@@@@@@@ debug mode....."
user = User.find 36
user = User.find 35
User.current = user
cookies.signed[:user_id] = user.id
end
end
# User.current = User.find 81403
User.current = User.find 35
end

# Returns the current user or nil if no user is logged in


Loading…
Cancel
Save