Made sure Control default view doesn't apply if no permissions.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2035 e3e1d417-86f3-4887-817a-d78f3d33393f
pull/27/merge
stan 2006-11-07 10:16:38 +00:00
parent 38146e9af0
commit e4846f525c
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ mysql_free_result( $result );
if ( !isset($control) ) if ( !isset($control) )
{ {
$control = ($monitor['DefaultView'] == 'Control'); $control = (canView( 'Control' ) && ($monitor['DefaultView'] == 'Control'));
} }
if ( !isset($scale) ) if ( !isset($scale) )