Correctly get readOnly state for calendars

This commit is contained in:
Raimund Schlüßler 2018-11-19 17:22:48 +01:00
parent 073242811b
commit 3f8d17249e
No known key found for this signature in database
GPG key ID: 036FA7EB1A599178

View file

@ -69,7 +69,7 @@ export function mapDavCollectionToCalendar(calendar) {
color: calendar.color,
enabled: calendar.enabled !== false,
owner: calendar.owner,
readOnly: false, // this currently does not work correctly. Need to get the state from the actual calendar!
readOnly: !calendar.isWriteable(),
tasks: [],
url: calendar.url,
dav: calendar,