diff --git a/lib/CalDAV/Schedule/Plugin.php b/lib/CalDAV/Schedule/Plugin.php index 8577ae9f70..c10c72a139 100644 --- a/lib/CalDAV/Schedule/Plugin.php +++ b/lib/CalDAV/Schedule/Plugin.php @@ -257,9 +257,12 @@ public function propFind(PropFind $propFind, INode $node) } }); - // The server currently reports every principal to be of type - // 'INDIVIDUAL' - $propFind->handle('{'.self::NS_CALDAV.'}calendar-user-type', function () { + $propFind->handle('{'.self::NS_CALDAV.'}calendar-user-type', function () use ($node) { + $propertyName = '{'.self::NS_CALDAV.'}calendar-user-type'; + $type = $node->getProperties([$propertyName]); + if(!empty($type[$propertyName])) { + return $type[$propertyName]; + } return 'INDIVIDUAL'; }); }