address book queries are only valid on addressbooks.

This commit is contained in:
Andrew McMillan 2012-07-08 21:44:15 +12:00
parent 0d47b81e48
commit c581e3a0f2

View File

@ -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') );
}