Skip to content
Snippets Groups Projects
Commit ec754d22 authored by Andrew Tomaka's avatar Andrew Tomaka
Browse files

Be more explicit with the impersonate return URL

parent daca985a
No related branches found
No related tags found
1 merge request!9873Prevent impersonation if blocked
Loading
Loading
@@ -11,7 +11,7 @@ class Admin::ImpersonationController < Admin::ApplicationController
redirect_to admin_user_path(@user)
else
session[:impersonator_id] = current_user.username
session[:impersonator_return_to] = request.env['HTTP_REFERER']
session[:impersonator_return_to] = admin_user_path(@user)
 
warden.set_user(user, scope: 'user')
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment