mirror of
https://github.com/discourse/discourse.git
synced 2025-04-29 05:54:33 +08: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'],
|
path: @env['REQUEST_PATH'],
|
||||||
client_ip: @request.ip,
|
client_ip: @request.ip,
|
||||||
staff: user.staff?,
|
staff: user.staff?,
|
||||||
impersonate: opts.impersonate)
|
impersonate: opts[:impersonate])
|
||||||
|
|
||||||
cookies[TOKEN_COOKIE] = cookie_hash(@user_token.unhashed_auth_token)
|
cookies[TOKEN_COOKIE] = cookie_hash(@user_token.unhashed_auth_token)
|
||||||
unstage_user(user)
|
unstage_user(user)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user