Fix missing braces around admin restriction.

This commit is contained in:
Andrew McMillan 2012-01-05 11:26:58 +13:00
parent 70f6587a18
commit 5df8e7c0b5

View File

@ -20,9 +20,9 @@ require_once("classBrowser.php");
require_once("caldav-PUT-functions.php"); require_once("caldav-PUT-functions.php");
include_once('check_UTF8.php'); include_once('check_UTF8.php');
if ( !$session->AllowedTo("Admin" ) ) if ( !$session->AllowedTo("Admin" ) ) {
@ob_flush(); exit(0); @ob_flush(); exit(0);
}
if( function_exists("sync_LDAP") && isset($_POST['Sync_LDAP'])){ if( function_exists("sync_LDAP") && isset($_POST['Sync_LDAP'])){
sync_LDAP(); sync_LDAP();
} }