Skip to content

Commit f74c74a

Browse files
author
Kristan Kenney
committed
Do not show users list when impersonating user
1 parent c225f57 commit f74c74a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

web/list/user/index.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
// Main include
66
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
77

8+
// Do not show the users list if user is impersonating another user
9+
if (isset($_SESSION['look'])) {
10+
header("Location: /login/");
11+
exit;
12+
}
13+
814
// Data
915
if ($_SESSION['userContext'] === 'admin') {
1016
exec (HESTIA_CMD . "v-list-users json", $output, $return_var);

0 commit comments

Comments
 (0)