mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-05-19 12:06:29 -04:00
If controls are on but not permitted the controls will not be defined
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user