mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: opts is a hash in 'log_on_user'
cc @nbianca
This commit is contained in:
parent
5af9a69a3b
commit
182b34243d
@ -156,7 +156,7 @@ class Auth::DefaultCurrentUserProvider
|
||||
path: @env['REQUEST_PATH'],
|
||||
client_ip: @request.ip,
|
||||
staff: user.staff?,
|
||||
impersonate: opts.impersonate)
|
||||
impersonate: opts[:impersonate])
|
||||
|
||||
cookies[TOKEN_COOKIE] = cookie_hash(@user_token.unhashed_auth_token)
|
||||
unstage_user(user)
|
||||
|
Loading…
Reference in New Issue
Block a user