A platform for community discussion. Free, open, simple.
FIX: opts is a hash in 'log_on_user'
Régis Hanol182b34243de6
diff --git a/lib/auth/default_current_user_provider.rb b/lib/auth/default_current_user_provider.rbindex 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::DefaultCurrentUserProviderpath: @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)