fix(caldav): Fix check for ROOM or RESOURCE comment

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2025-04-17 11:36:24 +02:00
parent 253a741013
commit fe7c1c0aad
No known key found for this signature in database
GPG key ID: F72FA5B49FFA96B0

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;
}