Merge pull request #628 from ZoneMinder/fix_console_auth

fix auth requirement on view=console by checking for user when AUTH is on
This commit is contained in:
Andrew Bauer 2014-12-11 16:37:11 -06:00
commit 9d9396c8bc
1 changed files with 5 additions and 0 deletions

View File

@ -18,6 +18,11 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
if ( ZM_OPT_USE_AUTH && ! isset($user) ) {
$view = "error";
return;
}
$eventCounts = array(
array(
"title" => $SLANG['Events'],