Skip to content

Commit 408e1b7

Browse files
committed
updated condition to show admin/user in the top panel
1 parent 4296cfc commit 408e1b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/templates/user/panel.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<b><a class="top-<?php if($TAB == 'LOG' ) echo 'selected-' ?>link" href="/list/log/"> <?php print _('Log') ?> </a></b>
1414
</td>
1515
<td>
16-
<b><?php if($user != 'admin') echo 'admin / ' ?><?php echo $user ?></b>
16+
<b><?php if(($_SESSION['user'] == 'admin') && ($user != 'admin')) echo 'admin / ' ?><?php echo $user ?></b>
1717
<a class="top-link" style="padding: 5px 0px 5px 2px; border:0px" href="/logout/"> <?php print _('Log out') ?> </a>
1818
</td>
1919
</tr>

0 commit comments

Comments
 (0)