From c581e3a0f27b14d86ecb46ea85e61489bdb10686 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Sun, 8 Jul 2012 21:44:15 +1200 Subject: [PATCH] address book queries are only valid on addressbooks. --- inc/caldav-REPORT-cardquery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/caldav-REPORT-cardquery.php b/inc/caldav-REPORT-cardquery.php index 06eff762..25cfb71b 100644 --- a/inc/caldav-REPORT-cardquery.php +++ b/inc/caldav-REPORT-cardquery.php @@ -183,7 +183,7 @@ $bound_from = $target_collection->bound_from(); if ( !$target_collection->Exists() ) { $request->DoResponse( 404 ); } -if ( ! ($target_collection->IsAddressbook() || $target_collection->IsSchedulingCollection()) ) { +if ( ! $target_collection->IsAddressbook() ) { $request->DoResponse( 403, translate('The addressbook-query report must be run against an addressbook collection') ); }