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

This commit is contained in:
Isaac Connor
2023-07-28 12:56:51 -04:00
parent bd71b35403
commit 20bbd9f3a6

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