From 182b34243de66e7df539e8ca8d522552e4e0ad6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Mon, 12 Nov 2018 16:00:12 +0100 Subject: [PATCH] FIX: opts is a hash in 'log_on_user' cc @nbianca --- lib/auth/default_current_user_provider.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/auth/default_current_user_provider.rb b/lib/auth/default_current_user_provider.rb index ed1230ea8e9..a01e70f3ae8 100644 --- a/lib/auth/default_current_user_provider.rb +++ b/lib/auth/default_current_user_provider.rb @@ -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)