Merge pull request #52241 from nextcloud/bugfix/noid/fix-room-or-resource-condition

fix(caldav): Fix check for ROOM or RESOURCE condition
This commit is contained in:
Ferdinand Thiessen 2025-04-23 13:54:01 +02:00 committed by GitHub
commit 21c128754d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -261,7 +261,7 @@ class Plugin extends \Sabre\CalDAV\Schedule\Plugin {
$principalUri = $aclPlugin->getPrincipalByUri($iTipMessage->recipient);
$calendarUserType = $this->getCalendarUserTypeForPrincipal($principalUri);
if (strcasecmp($calendarUserType, 'ROOM') !== 0 && strcasecmp($calendarUserType, 'RESOURCE') !== 0) {
$this->logger->debug('Calendar user type is room or resource, not processing further');
$this->logger->debug('Calendar user type is neither room nor resource, not processing further');
return;
}