mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-29 18:26:05 +00:00
Switch to HavePrivilegeTo() to ensure we catch tickets.
This commit is contained in:
parent
70c853df6c
commit
b1919850a1
@ -42,7 +42,7 @@ if ( isset($fb_format) && $fb_format != 'text/calendar' ) {
|
||||
*/
|
||||
$request = new CalDAVRequest(array("allow_by_email" => 1));
|
||||
|
||||
if ( ! $request->AllowedTo('freebusy') ) $request->DoResponse( 404 );
|
||||
if ( ! $request->HavePrivilegeTo('read-free-busy') ) $request->DoResponse( 404 );
|
||||
|
||||
switch ( $_SERVER['REQUEST_METHOD'] ) {
|
||||
case 'GET':
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user