mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-09-21 06:20:17 +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");
|
dbg_error_log("OPTIONS", "method handler");
|
||||||
|
|
||||||
if ( ! $request->AllowedTo('read') ) {
|
$request->NeedPrivilege( 'DAV::read' );
|
||||||
$request->DoResponse( 403, translate("You may not access that collection") );
|
|
||||||
}
|
|
||||||
|
|
||||||
$exists = false;
|
$exists = false;
|
||||||
$is_calendar = false;
|
$is_calendar = false;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user