mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-26 02:44:29 +00:00
Fix missing braces around admin restriction.
This commit is contained in:
parent
70f6587a18
commit
5df8e7c0b5
@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user