update user session with impersonation flag

This commit is contained in:
HB9HIL
2024-08-27 23:06:22 +02:00
parent 8d42e45f85
commit c41e6e68dd
2 changed files with 10 additions and 4 deletions

View File

@@ -1254,7 +1254,7 @@ class User extends CI_Controller {
// Update the session with the new user_id
// TODO: Find a solution for sessiondata 'radio', so a user would be able to use e.g. his own radio while impersonating another user
// Due the fact that the user is now impersonating another user, he can't use his default radio anymore
$this->user_model->update_session($target_uid);
$this->user_model->update_session($target_uid, null, $impersonate = true);
// Redirect to the dashboard, the user should now be logged in as the other user
redirect('dashboard');