fix(caldav): handle read-only boolean and int values

Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
This commit is contained in:
Richard Steinmetz 2025-08-20 13:47:28 +02:00
parent 4733369764
commit 60af5a4013
No known key found for this signature in database
GPG key ID: 27137D9E7D273FB2

View file

@ -411,7 +411,10 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
continue;
}
if (isset($calendars[$row['id']][$readOnlyPropertyName])
&& $calendars[$row['id']][$readOnlyPropertyName] === 0) {
&& (
$calendars[$row['id']][$readOnlyPropertyName] === 0
|| $calendars[$row['id']][$readOnlyPropertyName] === false
)) {
// Old share is already read-write, no more permissions can be gained
continue;
}