Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions apps/dav/lib/CalDAV/Activity/Backend.php
Original file line numberDiff line numberDiff line change
Expand Up@@ -27,6 +27,7 @@

use OCA\DAV\CalDAV\Activity\Provider\Calendar;
use OCA\DAV\CalDAV\Activity\Provider\Event;
use OCA\DAV\CalDAV\CalDavBackend;
use OCP\Activity\IEvent;
use OCP\Activity\IManager as IActivityManager;
use OCP\IGroup;
Expand DownExpand Up@@ -415,6 +416,8 @@ public function onTouchCalendarObject($action, array $calendarData, array $share
$currentUser = $owner;
}

$classification = (isset($objectData['classification']) ? $objectData['classification'] : CalDavBackend::CLASSIFICATION_PUBLIC);

$object = $this->getObjectNameAndType($objectData);
$action = $action . '_' . $object['type'];

Expand All@@ -434,6 +437,9 @@ public function onTouchCalendarObject($action, array $calendarData, array $share
$users[] = $owner;

foreach ($users as $user) {
if ($classification !== CalDavBackend::CLASSIFICATION_PUBLIC && $user !== $owner) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if ($classification === CalDavBackend::CLASSIFICATION_PRIVATE && $user !== $owner) {

continue;
}
$event->setAffectedUser($user)
->setSubject(
$user === $currentUser ? $action . '_self' : $action,
Expand Down