Skip to content

Commit

Permalink
Fix user being able to see all names under certain circumstances.
Browse files Browse the repository at this point in the history
  • Loading branch information
M4LuZ committed Mar 30, 2017
1 parent d22ba00 commit 7ba3090
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/seating/class_seat.php
Original file line number Diff line number Diff line change
Expand Up @@ -476,12 +476,12 @@ function DrawPlan($blockid, $mode, $linktarget = '', $selected_user = false) {
case "9":
$tooltip .= t('Block') .': '. $this->CoordinateToBlockAndName($x + 1, $y, $blockid) . HTML_NEWLINE;
$tooltip .= t('Benutzername') .': '. $user_info[$y][$x]['username'] . HTML_NEWLINE;
if (!$cfg['sys_internet'] or $auth['type'] > 1 or ($auth['userid'] == $selected_user and $selected_user != false))
if (!$cfg['sys_internet'] or $auth['type'] > 1 or ($selected_user != false and $auth['userid'] == $user_info[$y][$x]['userid']))
$tooltip .= t('Name') .': '. trim($user_info[$y][$x]['firstname']) .' '. trim($user_info[$y][$x]['name']) . HTML_NEWLINE;
$tooltip .= t('Clan') .': '. $user_info[$y][$x]['clan'] . HTML_NEWLINE;
$tooltip .= t('IP') .': '. $seat_ip[$y][$x] . HTML_NEWLINE;
if ($func->chk_img_path($user_info[$y][$x]['avatar_path']) and
($cfg['seating_show_user_pics'] or !$cfg['sys_internet'] or $auth['type'] > 1 or ($auth['userid'] == $selected_user and $selected_user != false)))
($cfg['seating_show_user_pics'] or !$cfg['sys_internet'] or $auth['type'] > 1 or ($selected_user != false and $auth['userid'] == $user_info[$y][$x]['userid'])))
$tooltip .= '<img src=\''. $user_info[$y][$x]['avatar_path'] .'\' style=\'max-width:100%;\' />' . HTML_NEWLINE;
break;
case "1":
Expand Down

0 comments on commit 7ba3090

Please sign in to comment.