mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-26 02:44:29 +00:00
Deny calendar-query report on root, principal or addressbook
Even if recursive report is enabled.
This commit is contained in:
parent
c70c4e40a5
commit
a555fdad40
@ -303,6 +303,9 @@ if ( ! ($target_collection->IsCalendar() || $target_collection->IsSchedulingColl
|
|||||||
if ( !(isset($c->allow_recursive_report) && $c->allow_recursive_report) ) {
|
if ( !(isset($c->allow_recursive_report) && $c->allow_recursive_report) ) {
|
||||||
$request->DoResponse( 403, translate('The calendar-query report must be run against a calendar or a scheduling collection') );
|
$request->DoResponse( 403, translate('The calendar-query report must be run against a calendar or a scheduling collection') );
|
||||||
}
|
}
|
||||||
|
else if ( $request->path == '/' || $target_collection->IsPrincipal() || $target_collection->IsAddressbook() ) {
|
||||||
|
$request->DoResponse( 403, translate('The calendar-query report may not be run against that URL.') );
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* We're here because they allow recursive reports, and this appears to be such a location.
|
* We're here because they allow recursive reports, and this appears to be such a location.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user