Merge pull request #58341 from nextcloud/backport/58203/stable33

[stable33] fix: obey x-nc-scheduling flag on delete
This commit is contained in:
Sebastian Krupinski 2026-02-19 14:33:32 -05:00 committed by GitHub
commit 8adf66a099
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -165,6 +165,7 @@ class Plugin extends \Sabre\CalDAV\Schedule\Plugin {
// Do not generate iTip and iMip messages if scheduling is disabled for this message
if ($request->getHeader('x-nc-scheduling') === 'false') {
$this->logger->debug('Skipping scheduling messages for calendar object change because x-nc-scheduling header is set to false');
return;
}
@ -212,6 +213,13 @@ class Plugin extends \Sabre\CalDAV\Schedule\Plugin {
* @inheritDoc
*/
public function beforeUnbind($path): void {
// Do not generate iTip and iMip messages if scheduling is disabled for this message
if ($this->server->httpRequest->getHeader('x-nc-scheduling') === 'false') {
$this->logger->debug('Skipping scheduling messages for calendar object delete because x-nc-scheduling header is set to false');
return;
}
try {
parent::beforeUnbind($path);
} catch (SameOrganizerForAllComponentsException $e) {