diff --git a/inc/caldav-OPTIONS.php b/inc/caldav-OPTIONS.php index 00556f58..714d8d83 100644 --- a/inc/caldav-OPTIONS.php +++ b/inc/caldav-OPTIONS.php @@ -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;