diff options
author | Thomas Citharel <tcit@tcit.fr> | 2022-05-12 10:23:26 +0300 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2022-06-14 15:40:24 +0300 |
commit | 39ef0500d1d9b2d16540c7548100181e535f2a31 (patch) | |
tree | 0eb154048c90c8d9294da9aff4ec9a623c041d38 /apps/dav/lib/CalDAV/CalendarObject.php | |
parent | ad10cd5f65fc145889bade0a57a910502cd02750 (diff) |
Handle the move operation properly between shared calendars
- Introduce a new CalendarObjectMovedEvent typed event dedicated for
this operation
- Handle the event in the activity backend and add new appropriate activity subjects
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'apps/dav/lib/CalDAV/CalendarObject.php')
-rw-r--r-- | apps/dav/lib/CalDAV/CalendarObject.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/dav/lib/CalDAV/CalendarObject.php b/apps/dav/lib/CalDAV/CalendarObject.php index c927254fba3..32bcff900c2 100644 --- a/apps/dav/lib/CalDAV/CalendarObject.php +++ b/apps/dav/lib/CalDAV/CalendarObject.php @@ -162,4 +162,11 @@ class CalendarObject extends \Sabre\CalDAV\CalendarObject { public function getPrincipalUri(): string { return $this->calendarInfo['principaluri']; } + + public function getOwner(): ?string { + if (isset($this->calendarInfo['{http://owncloud.org/ns}owner-principal'])) { + return $this->calendarInfo['{http://owncloud.org/ns}owner-principal']; + } + return parent::getOwner(); + } } |