If controls are on but not permitted the controls will not be defined

pull/3750/head
Isaac Connor 2023-07-28 12:56:51 -04:00
parent bd71b35403
commit 20bbd9f3a6
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ var hasOnvif = <?php echo ZM_HAS_ONVIF ?>;
var defaultAspectRatio = '<?php echo ZM_DEFAULT_ASPECT_RATIO ?>';
<?php
if ( ZM_OPT_CONTROL ) {
if (ZM_OPT_CONTROL and canView('Controls')) {
?>
var controlOptions = new Object();
<?php