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
No known key found for this signature in database
GPG Key ID: 27137D9E7D273FB2
1 changed files with
4 additions and
1 deletions
-
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; |
|
|
|
} |
|
|
|
|