Skip to content

Commit ca1fbbc

Browse files
author
Kristan Kenney
committed
Set correct landing page when switching user context
1 parent 2461f9c commit ca1fbbc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

web/login/index.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@
2525
$_SESSION['look_alert'] = 'yes';
2626
}
2727
}
28-
header("Location: /list/web/");
28+
if ($_SESSION['user'] == 'admin' && empty($_GET['loginas'])) {
29+
header("Location: /list/user/");
30+
} else {
31+
header("Location: /list/web/");
32+
}
2933
exit;
3034
}
3135

0 commit comments

Comments
 (0)