mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
fix for logged in message window
This commit is contained in:
parent
d8d4e732b3
commit
b63eaba5d5
1 changed files with 6 additions and 2 deletions
|
@ -12,8 +12,12 @@ include($_SERVER['DOCUMENT_ROOT'].'/templates/header.html');
|
|||
top_panel($user,$TAB);
|
||||
|
||||
// Data
|
||||
if ($user == 'admin') {
|
||||
exec (VESTA_CMD . "v-list-users json", $output, $return_var);
|
||||
if ($_SESSION['user'] == 'admin') {
|
||||
if ($user == 'admin') {
|
||||
exec (VESTA_CMD . "v-list-users json", $output, $return_var);
|
||||
} else {
|
||||
exec (VESTA_CMD . "v-list-user ".$user." json", $output, $return_var);
|
||||
}
|
||||
$data = json_decode(implode('', $output), true);
|
||||
$data = array_reverse($data,true);
|
||||
display_error_block();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue