Skip to content

Commit b63eaba

Browse files
committed
fix for logged in message window
1 parent d8d4e73 commit b63eaba

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

web/list/user/index.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,12 @@
1212
top_panel($user,$TAB);
1313

1414
// Data
15-
if ($user == 'admin') {
16-
exec (VESTA_CMD . "v-list-users json", $output, $return_var);
15+
if ($_SESSION['user'] == 'admin') {
16+
if ($user == 'admin') {
17+
exec (VESTA_CMD . "v-list-users json", $output, $return_var);
18+
} else {
19+
exec (VESTA_CMD . "v-list-user ".$user." json", $output, $return_var);
20+
}
1721
$data = json_decode(implode('', $output), true);
1822
$data = array_reverse($data,true);
1923
display_error_block();

0 commit comments

Comments
 (0)