navbar requests don't pass an auth token so we never send an auth update. Just always send it.

This commit is contained in:
Isaac Connor 2021-03-13 12:10:35 -05:00
parent 9d33688f89
commit 587cebecbb
1 changed files with 2 additions and 4 deletions

View File

@ -4,11 +4,9 @@ if ( $_REQUEST['entity'] == 'navBar' ) {
$data = array();
if ( ZM_OPT_USE_AUTH && (ZM_AUTH_RELAY == 'hashed') ) {
$auth_hash = generateAuthHash(ZM_AUTH_HASH_IPS);
if ( isset($_REQUEST['auth']) and ($_REQUEST['auth'] != $auth_hash) ) {
$data['auth'] = $auth_hash;
$data['auth_relay'] = get_auth_relay();
}
}
// Each widget on the navbar has its own function
// Call the functions we want to dynamically update
$data['getBandwidthHTML'] = getBandwidthHTML($bandwidth_options, $user);