From b1919850a1d223344aadc40df215871009699401 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Sun, 7 Mar 2010 20:57:33 +1300 Subject: [PATCH] Switch to HavePrivilegeTo() to ensure we catch tickets. --- htdocs/freebusy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/freebusy.php b/htdocs/freebusy.php index 8e1120b2..bc0273aa 100644 --- a/htdocs/freebusy.php +++ b/htdocs/freebusy.php @@ -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':