mirror of
https://github.com/nextcloud/server.git
synced 2026-02-17 01:41:05 -05:00
fix: obey x-nc-scheduling flag on delete
Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
This commit is contained in:
parent
0cd375532d
commit
b91dfee54a
1 changed files with 8 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue