This commit is contained in:
Isaac Connor 2021-01-16 13:16:36 -05:00
parent d98dde4aee
commit 3dc35c49a2
1 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ var serverId = '<?php echo defined('ZM_SERVER_ID') ? ZM_SERVER_ID : '' ?>';
var canView = {}; var canView = {};
var canEdit = {}; var canEdit = {};
<?php <?php
$perms = array("Stream", "Events", "Control", "Monitors", "Groups", "System", "Devices"); $perms = array('Stream', 'Events', 'Control', 'Monitors', 'Groups', 'System', 'Devices');
foreach ( $perms as $perm ) { foreach ( $perms as $perm ) {
?> ?>
canView["<?php echo $perm ?>"] = <?php echo canView($perm)?'true':'false' ?>; canView["<?php echo $perm ?>"] = <?php echo canView($perm)?'true':'false' ?>;
@ -60,7 +60,7 @@ if ( ! empty($refreshParent) ) {
echo 'true'; echo 'true';
} else if ( $refreshParent ) { } else if ( $refreshParent ) {
# This is to tell the parent to refresh to a specific URL # This is to tell the parent to refresh to a specific URL
echo "'$refreshParent'"; echo '\''.$refreshParent.'\'';
} else { } else {
echo 'false'; echo 'false';
} }