Don't allow feed access unless user has at least freebusy privileges.

Signed-off-by: Andrew McMillan <andrew@morphoss.com>
This commit is contained in:
Andrew McMillan 2010-12-27 17:13:43 +13:00
parent 520077a9a5
commit 5ad371a910

View File

@ -32,7 +32,7 @@ function caldav_get_feed( $request ) {
require_once("DAVResource.php");
$collection = new DAVResource($request->path);
$collection->NeedPrivilege( array('urn:ietf:params:xml:ns:caldav:read-free-busy','DAV::read') );
$collection->NeedPrivilege( array('DAV::read') );
if ( ! $collection->Exists() ) {
$request->DoResponse( 404, translate("Resource Not Found.") );