diff --git a/app/src/main/java/at/bitfire/davdroid/db/CollectionDao.kt b/app/src/main/java/at/bitfire/davdroid/db/CollectionDao.kt index 6e72ede3fde363077ddd46315e04b2abaa70a730..f210efde451994d05dae19f1a19514bbf2e407f5 100644 --- a/app/src/main/java/at/bitfire/davdroid/db/CollectionDao.kt +++ b/app/src/main/java/at/bitfire/davdroid/db/CollectionDao.kt @@ -53,7 +53,7 @@ interface CollectionDao: SyncableDao { @Query("SELECT * FROM collection WHERE serviceId=:serviceId AND type='${Collection.TYPE_CALENDAR}' AND (supportsVTODO OR supportsVJOURNAL) AND sync ORDER BY displayName, url") fun getSyncJtxCollections(serviceId: Long): List - @Query("SELECT * FROM collection WHERE serviceId=:serviceId AND type='${Collection.TYPE_CALENDAR}' AND supportsVTODO AND sync ORDER BY displayName, url") + @Query("SELECT * FROM collection WHERE serviceId=:serviceId AND type='${Collection.TYPE_CALENDAR}' AND supportsVTODO AND sync AND NOT forceReadOnly AND privWriteContent ORDER BY displayName, url") fun getSyncTaskLists(serviceId: Long): List @Insert(onConflict = OnConflictStrategy.REPLACE)