Skip to content

Commit

Permalink
fix for logged in message window
Browse files Browse the repository at this point in the history
  • Loading branch information
serghey-rodin committed Jan 16, 2014
1 parent d8d4e73 commit b63eaba
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions web/list/user/index.php
Expand Up @@ -12,8 +12,12 @@
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();
Expand Down

0 comments on commit b63eaba

Please sign in to comment.