mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-02-13 03:23:34 +00:00
Use NeedPrivilege to respond to access denied.
This commit is contained in:
parent
2e14fda7c1
commit
ecdf44ddd9
@ -10,9 +10,7 @@
|
||||
*/
|
||||
dbg_error_log("OPTIONS", "method handler");
|
||||
|
||||
if ( ! $request->AllowedTo('read') ) {
|
||||
$request->DoResponse( 403, translate("You may not access that collection") );
|
||||
}
|
||||
$request->NeedPrivilege( 'DAV::read' );
|
||||
|
||||
$exists = false;
|
||||
$is_calendar = false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user