From e4846f525c58c2b0898de870ec20e1c1f6d8b989 Mon Sep 17 00:00:00 2001 From: stan Date: Tue, 7 Nov 2006 10:16:38 +0000 Subject: [PATCH] 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 --- web/zm_html_view_watch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/zm_html_view_watch.php b/web/zm_html_view_watch.php index ad28a34be..3cc778802 100644 --- a/web/zm_html_view_watch.php +++ b/web/zm_html_view_watch.php @@ -31,7 +31,7 @@ mysql_free_result( $result ); if ( !isset($control) ) { - $control = ($monitor['DefaultView'] == 'Control'); + $control = (canView( 'Control' ) && ($monitor['DefaultView'] == 'Control')); } if ( !isset($scale) )