Skip to content

Commit 4145b35

Browse files
author
Kristan Kenney
authored
Fix user type icon in top menu bar (hestiacp#3810)
State was incorrectly detected leading it to always show as impersonating another user.
1 parent f696c0a commit 4145b35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/templates/includes/panel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<!-- Usage Statistics -->
1717
<div class="top-bar-usage">
1818
<?php
19-
if (isset($_SESSION['look'])) {
19+
if ($_SESSION['look'] !== '') {
2020
$user_icon = 'fa-binoculars';
2121
} else if ($_SESSION['userContext'] === 'admin') {
2222
$user_icon = 'fa-user-tie';

0 commit comments

Comments
 (0)