diff options
author | Andrew Tomaka <atomaka@gmail.com> | 2015-12-02 13:21:07 -0500 |
---|---|---|
committer | Andrew Tomaka <atomaka@gmail.com> | 2015-12-02 13:21:07 -0500 |
commit | ec754d221368fad2b765fa60c665a461b2b29c78 (patch) | |
tree | 53fe77ed0f9dbcfd6818c9675d91d2f0d8f6585a /app/controllers | |
parent | daca985a6e75d6f43c5cc5b487a0942d5bf93f68 (diff) | |
download | gitlab-ce-ec754d221368fad2b765fa60c665a461b2b29c78.tar.gz |
Be more explicit with the impersonate return URL
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/admin/impersonation_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin/impersonation_controller.rb b/app/controllers/admin/impersonation_controller.rb index 102dd437402..bf98af78615 100644 --- a/app/controllers/admin/impersonation_controller.rb +++ b/app/controllers/admin/impersonation_controller.rb @@ -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') |