mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 18:21:40 -04:00
fix(caldav): handle read-only boolean and int values
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
This commit is contained in:
parent
4733369764
commit
60af5a4013
1 changed files with 4 additions and 1 deletions
|
|
@ -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…
Reference in a new issue