FIX: opts is a hash in 'log_on_user'

cc @nbianca
This commit is contained in:
Régis Hanol 2018-11-12 16:00:12 +01:00 committed by GitHub
parent 5af9a69a3b
commit 182b34243d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)