diff --git a/web/zm_html_view_watchX.php b/web/zm_html_view_watchX.php index 3315c0692..ef085eb16 100644 --- a/web/zm_html_view_watchX.php +++ b/web/zm_html_view_watchX.php @@ -27,6 +27,9 @@ if ( !canView( 'Stream' ) ) $sql = "select C.*, M.* from Monitors as M left join Controls as C on (M.ControlId = C.Id ) where M.Id = '$mid'"; $monitor = dbFetchOne( $sql ); +if ( !isset($control) ) + $control = (canView( 'Control' ) && ($monitor['DefaultView'] == 'Control')); + $showControls = ( ZM_OPT_CONTROL && $monitor['Controllable'] && canView( 'Control' ) ); if ( !isset( $scale ) )