Browse Source

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

Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
fix/caldav/read-only-bool-or-int
Richard Steinmetz 12 months ago
parent
commit
60af5a4013
No known key found for this signature in database GPG Key ID: 27137D9E7D273FB2
  1. 5
      apps/dav/lib/CalDAV/CalDavBackend.php

5
apps/dav/lib/CalDAV/CalDavBackend.php

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

Loading…
Cancel
Save