diff options
author | Phil Davis <phil.davis@inf.org> | 2017-01-07 08:09:40 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2017-01-07 08:09:40 +0545 |
commit | b2daca7675fc3fefd9938935a7b7d0548438b6ed (patch) | |
tree | 414ee83b65c2dcd327a45c771920f2aca4f84f04 /src/usr/local/www/head.inc | |
parent | fce3edc0ff8de6f051092574b10f0627c6099e88 (diff) | |
download | pfsense-b2daca7675fc3fefd9938935a7b7d0548438b6ed.zip pfsense-b2daca7675fc3fefd9938935a7b7d0548438b6ed.tar.gz |
Fix username reference
Diffstat (limited to 'src/usr/local/www/head.inc')
-rw-r--r-- | src/usr/local/www/head.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/www/head.inc b/src/usr/local/www/head.inc index daa1680..6205772 100644 --- a/src/usr/local/www/head.inc +++ b/src/usr/local/www/head.inc @@ -425,7 +425,7 @@ $allow_clear_notices = false; if (are_notices_pending()) { // Evaluate user privs to determine if notices should be displayed, and if the user can clear them. $user_entry = getUserEntry($_SESSION['Username']); - if (isAdminUID($username) || userHasPrivilege($user_entry, "user-view-clear-notices") || userHasPrivilege($user_entry, "page-all")) { + if (isAdminUID($_SESSION['Username']) || userHasPrivilege($user_entry, "user-view-clear-notices") || userHasPrivilege($user_entry, "page-all")) { $display_notices = true; $allow_clear_notices = true; } elseif (userHasPrivilege($user_entry, "user-view-notices")) { |