Permalink
Browse files

fix for logged in message window

  • Loading branch information...
serghey-rodin committed Jan 16, 2014
1 parent d8d4e73 commit b63eaba5d506b8a90c4fc2d48ee78047820f87fb
Showing with 6 additions and 2 deletions.
  1. +6 −2 web/list/user/index.php
View
@@ -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();

0 comments on commit b63eaba

Please sign in to comment.