mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-03-08 23:47:42 +01:00
do not allow saving events to a calendar without write permission
This commit is contained in:
parent
fb68e66787
commit
7ee4935589
@ -600,7 +600,7 @@ class EventActivity : SimpleActivity() {
|
||||
event_caldav_calendar_divider.beVisible()
|
||||
|
||||
val calendars = calDAVHelper.getCalDAVCalendars(this).filter {
|
||||
it.canWrite() && config.getSyncedCalendarIdsAsList().contains(it.id)
|
||||
config.getSyncedCalendarIdsAsList().contains(it.id)
|
||||
}
|
||||
updateCurrentCalendarInfo(if (mEventCalendarId == STORED_LOCALLY_ONLY) null else getCalendarWithId(calendars, getCalendarId()))
|
||||
|
||||
@ -732,6 +732,15 @@ class EventActivity : SimpleActivity() {
|
||||
val newEventType = if (!config.caldavSync || config.lastUsedCaldavCalendarId == 0 || mEventCalendarId == STORED_LOCALLY_ONLY) {
|
||||
mEventTypeId
|
||||
} else {
|
||||
calDAVHelper.getCalDAVCalendars(this).firstOrNull { it.id == mEventCalendarId }?.apply {
|
||||
if (!canWrite()) {
|
||||
runOnUiThread {
|
||||
toast(R.string.insufficient_permissions)
|
||||
}
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
eventsHelper.getEventTypeWithCalDAVCalendarId(mEventCalendarId)?.id ?: config.lastUsedLocalEventTypeId
|
||||
}
|
||||
|
||||
|
@ -183,6 +183,7 @@
|
||||
<string name="syncing">Sinxronlaşdırılır…</string>
|
||||
<string name="synchronization_completed">Sinxronlaşma bitdi</string>
|
||||
<string name="select_a_different_caldav_color">Select a different color (might be applied locally only)</string>
|
||||
<string name="insufficient_permissions">You are not allowed to write in the selected calendar</string>
|
||||
|
||||
<!-- alternative versions for some languages, use the same translations if you are not sure what this means -->
|
||||
<!-- used in repetition, like "Every last Sunday" -->
|
||||
|
@ -183,6 +183,7 @@
|
||||
<string name="syncing">O c\'houbredañ…</string>
|
||||
<string name="synchronization_completed">Echuet gant ar goubredañ</string>
|
||||
<string name="select_a_different_caldav_color">Select a different color (might be applied locally only)</string>
|
||||
<string name="insufficient_permissions">You are not allowed to write in the selected calendar</string>
|
||||
|
||||
<!-- alternative versions for some languages, use the same translations if you are not sure what this means -->
|
||||
<!-- used in repetition, like "Every last Sunday" -->
|
||||
|
@ -183,6 +183,7 @@
|
||||
<string name="syncing">Synchronizuji…</string>
|
||||
<string name="synchronization_completed">Synchronizace dokončena</string>
|
||||
<string name="select_a_different_caldav_color">Select a different color (might be applied locally only)</string>
|
||||
<string name="insufficient_permissions">You are not allowed to write in the selected calendar</string>
|
||||
|
||||
<!-- alternative versions for some languages, use the same translations if you are not sure what this means -->
|
||||
<!-- used in repetition, like "Every last Sunday" -->
|
||||
|
@ -183,6 +183,7 @@
|
||||
<string name="syncing">Synkroniserer…</string>
|
||||
<string name="synchronization_completed">Synkronisering gennemført</string>
|
||||
<string name="select_a_different_caldav_color">Select a different color (might be applied locally only)</string>
|
||||
<string name="insufficient_permissions">You are not allowed to write in the selected calendar</string>
|
||||
|
||||
<!-- alternative versions for some languages, use the same translations if you are not sure what this means -->
|
||||
<!-- used in repetition, like "Every last Sunday" -->
|
||||
|
@ -183,6 +183,7 @@
|
||||
<string name="syncing">Wird synchronisiert…</string>
|
||||
<string name="synchronization_completed">Synchronisation erfolgreich</string>
|
||||
<string name="select_a_different_caldav_color">Select a different color (might be applied locally only)</string>
|
||||
<string name="insufficient_permissions">You are not allowed to write in the selected calendar</string>
|
||||
|
||||
<!-- alternative versions for some languages, use the same translations if you are not sure what this means -->
|
||||
<!-- used in repetition, like "Every last Sunday" -->
|
||||
|
@ -183,6 +183,7 @@
|
||||
<string name="syncing">Συγχρονισμός…</string>
|
||||
<string name="synchronization_completed">Ο συγχρονισμός ολοκληρώθηκε</string>
|
||||
<string name="select_a_different_caldav_color">Select a different color (might be applied locally only)</string>
|
||||
<string name="insufficient_permissions">You are not allowed to write in the selected calendar</string>
|
||||
|
||||
<!-- alternative versions for some languages, use the same translations if you are not sure what this means -->
|
||||
<!-- used in repetition, like "Every last Sunday" -->
|
||||
|
@ -183,6 +183,7 @@
|
||||
<string name="syncing">Sincronizando…</string>
|
||||
<string name="synchronization_completed">Sincronización completa</string>
|
||||
<string name="select_a_different_caldav_color">Select a different color (might be applied locally only)</string>
|
||||
<string name="insufficient_permissions">You are not allowed to write in the selected calendar</string>
|
||||
|
||||
<!-- alternative versions for some languages, use the same translations if you are not sure what this means -->
|
||||
<!-- used in repetition, like "Every last Sunday" -->
|
||||
|
@ -183,6 +183,7 @@
|
||||
<string name="syncing">Synchronisation…</string>
|
||||
<string name="synchronization_completed">Synchronisation terminée</string>
|
||||
<string name="select_a_different_caldav_color">Sélectionnez une couleur différente (peut être appliqué localement uniquement)</string>
|
||||
<string name="insufficient_permissions">You are not allowed to write in the selected calendar</string>
|
||||
|
||||
<!-- alternative versions for some languages, use the same translations if you are not sure what this means -->
|
||||
<!-- used in repetition, like "Every last Sunday" -->
|
||||
|
@ -183,6 +183,7 @@
|
||||
<string name="syncing">Sincronizando…</string>
|
||||
<string name="synchronization_completed">Sincronización completa</string>
|
||||
<string name="select_a_different_caldav_color">Select a different color (might be applied locally only)</string>
|
||||
<string name="insufficient_permissions">You are not allowed to write in the selected calendar</string>
|
||||
|
||||
<!-- alternative versions for some languages, use the same translations if you are not sure what this means -->
|
||||
<!-- used in repetition, like "Every last Sunday" -->
|
||||
|
@ -184,6 +184,7 @@
|
||||
<string name="syncing">Syncing…</string>
|
||||
<string name="synchronization_completed">Sync completed</string>
|
||||
<string name="select_a_different_caldav_color">Select a different color (might be applied locally only)</string>
|
||||
<string name="insufficient_permissions">You are not allowed to write in the selected calendar</string>
|
||||
|
||||
<!-- alternative versions for some languages, use the same translations if you are not sure what this means -->
|
||||
<!-- used in repetition, like "Every last Sunday" -->
|
||||
|
@ -183,6 +183,7 @@
|
||||
<string name="syncing">Sinkronizacija…</string>
|
||||
<string name="synchronization_completed">Sinkronizacija završena</string>
|
||||
<string name="select_a_different_caldav_color">Select a different color (might be applied locally only)</string>
|
||||
<string name="insufficient_permissions">You are not allowed to write in the selected calendar</string>
|
||||
|
||||
<!-- alternative versions for some languages, use the same translations if you are not sure what this means -->
|
||||
<!-- used in repetition, like "Every last Sunday" -->
|
||||
|
@ -183,6 +183,7 @@
|
||||
<string name="syncing">Syncing…</string>
|
||||
<string name="synchronization_completed">Sync completed</string>
|
||||
<string name="select_a_different_caldav_color">Select a different color (might be applied locally only)</string>
|
||||
<string name="insufficient_permissions">You are not allowed to write in the selected calendar</string>
|
||||
|
||||
<!-- alternative versions for some languages, use the same translations if you are not sure what this means -->
|
||||
<!-- used in repetition, like "Every last Sunday" -->
|
||||
|
@ -183,6 +183,7 @@
|
||||
<string name="syncing">Sincronizzazione in corso…</string>
|
||||
<string name="synchronization_completed">Sincronizzazione completata</string>
|
||||
<string name="select_a_different_caldav_color">Seleziona un colore differente (potrebbe essere applicato solamente in locale)</string>
|
||||
<string name="insufficient_permissions">You are not allowed to write in the selected calendar</string>
|
||||
|
||||
<!-- alternative versions for some languages, use the same translations if you are not sure what this means -->
|
||||
<!-- used in repetition, like "Every last Sunday" -->
|
||||
|
@ -184,6 +184,7 @@
|
||||
<string name="syncing">Syncing…</string>
|
||||
<string name="synchronization_completed">Sync completed</string>
|
||||
<string name="select_a_different_caldav_color">Select a different color (might be applied locally only)</string>
|
||||
<string name="insufficient_permissions">You are not allowed to write in the selected calendar</string>
|
||||
|
||||
<!-- alternative versions for some languages, use the same translations if you are not sure what this means -->
|
||||
<!-- used in repetition, like "Every last Sunday" -->
|
||||
|
@ -183,6 +183,7 @@
|
||||
<string name="syncing">同期中…</string>
|
||||
<string name="synchronization_completed">同期が完了しました</string>
|
||||
<string name="select_a_different_caldav_color">Select a different color (might be applied locally only)</string>
|
||||
<string name="insufficient_permissions">You are not allowed to write in the selected calendar</string>
|
||||
|
||||
<!-- alternative versions for some languages, use the same translations if you are not sure what this means -->
|
||||
<!-- used in repetition, like "Every last Sunday" -->
|
||||
|
@ -183,6 +183,7 @@
|
||||
<string name="syncing">동기화중…</string>
|
||||
<string name="synchronization_completed">동기화 완료</string>
|
||||
<string name="select_a_different_caldav_color">Select a different color (might be applied locally only)</string>
|
||||
<string name="insufficient_permissions">You are not allowed to write in the selected calendar</string>
|
||||
|
||||
<!-- alternative versions for some languages, use the same translations if you are not sure what this means -->
|
||||
<!-- used in repetition, like "Every last Sunday" -->
|
||||
|
@ -183,6 +183,7 @@
|
||||
<string name="syncing">Sinchronizuojama…</string>
|
||||
<string name="synchronization_completed">Sinchronizacija baigta</string>
|
||||
<string name="select_a_different_caldav_color">Select a different color (might be applied locally only)</string>
|
||||
<string name="insufficient_permissions">You are not allowed to write in the selected calendar</string>
|
||||
|
||||
<!-- alternative versions for some languages, use the same translations if you are not sure what this means -->
|
||||
<!-- used in repetition, like "Every last Sunday" -->
|
||||
|
@ -183,6 +183,7 @@
|
||||
<string name="syncing">Synkroniserer…</string>
|
||||
<string name="synchronization_completed">Synkronisering fullført</string>
|
||||
<string name="select_a_different_caldav_color">Select a different color (might be applied locally only)</string>
|
||||
<string name="insufficient_permissions">You are not allowed to write in the selected calendar</string>
|
||||
|
||||
<!-- alternative versions for some languages, use the same translations if you are not sure what this means -->
|
||||
<!-- used in repetition, like "Every last Sunday" -->
|
||||
|
@ -183,6 +183,7 @@
|
||||
<string name="syncing">Synchroniseren…</string>
|
||||
<string name="synchronization_completed">Synchroniseren voltooid</string>
|
||||
<string name="select_a_different_caldav_color">Kies een andere kleur (mogelijk alleen voor dit apparaat)</string>
|
||||
<string name="insufficient_permissions">You are not allowed to write in the selected calendar</string>
|
||||
|
||||
<!-- alternative versions for some languages, use the same translations if you are not sure what this means -->
|
||||
<!-- used in repetition, like "Every last Sunday" -->
|
||||
|
@ -183,6 +183,7 @@
|
||||
<string name="syncing">Synkroniserer…</string>
|
||||
<string name="synchronization_completed">Synkronisering fullført</string>
|
||||
<string name="select_a_different_caldav_color">Select a different color (might be applied locally only)</string>
|
||||
<string name="insufficient_permissions">You are not allowed to write in the selected calendar</string>
|
||||
|
||||
<!-- alternative versions for some languages, use the same translations if you are not sure what this means -->
|
||||
<!-- used in repetition, like "Every last Sunday" -->
|
||||
|
@ -183,6 +183,7 @@
|
||||
<string name="syncing">Synchronizowanie…</string>
|
||||
<string name="synchronization_completed">Synchronizacja zakończona</string>
|
||||
<string name="select_a_different_caldav_color">Select a different color (might be applied locally only)</string>
|
||||
<string name="insufficient_permissions">You are not allowed to write in the selected calendar</string>
|
||||
|
||||
<!-- alternative versions for some languages, use the same translations if you are not sure what this means -->
|
||||
<!-- used in repetition, like "Every last Sunday" -->
|
||||
|
@ -183,6 +183,7 @@
|
||||
<string name="syncing">Sincronizando…</string>
|
||||
<string name="synchronization_completed">Sincronização completa</string>
|
||||
<string name="select_a_different_caldav_color">Select a different color (might be applied locally only)</string>
|
||||
<string name="insufficient_permissions">You are not allowed to write in the selected calendar</string>
|
||||
|
||||
<!-- alternative versions for some languages, use the same translations if you are not sure what this means -->
|
||||
<!-- used in repetition, like "Every last Sunday" -->
|
||||
|
@ -183,6 +183,7 @@
|
||||
<string name="syncing">A sincronizar…</string>
|
||||
<string name="synchronization_completed">Sincronização terminada</string>
|
||||
<string name="select_a_different_caldav_color">Selecione uma cor diferente (pode ser aplicada apenas localmente)</string>
|
||||
<string name="insufficient_permissions">You are not allowed to write in the selected calendar</string>
|
||||
|
||||
<!-- alternative versions for some languages, use the same translations if you are not sure what this means -->
|
||||
<!-- used in repetition, like "Every last Sunday" -->
|
||||
|
@ -183,6 +183,7 @@
|
||||
<string name="syncing">Синхронизация…</string>
|
||||
<string name="synchronization_completed">Синхронизация завершена</string>
|
||||
<string name="select_a_different_caldav_color">Выберите другой цвет (применяется локально)</string>
|
||||
<string name="insufficient_permissions">You are not allowed to write in the selected calendar</string>
|
||||
|
||||
<!-- alternative versions for some languages, use the same translations if you are not sure what this means -->
|
||||
<!-- used in repetition, like "Every last Sunday" -->
|
||||
|
@ -183,6 +183,7 @@
|
||||
<string name="syncing">Synchronizujem…</string>
|
||||
<string name="synchronization_completed">Synchronizácia ukončená</string>
|
||||
<string name="select_a_different_caldav_color">Zvoliť inú farbu (možno bude aplikovaná iba lokálne)</string>
|
||||
<string name="insufficient_permissions">Nemáte dostatočné oprávnenie na písanie do zvoleného kalendára</string>
|
||||
|
||||
<!-- alternative versions for some languages, use the same translations if you are not sure what this means -->
|
||||
<!-- used in repetition, like "Every last Sunday" -->
|
||||
|
@ -183,6 +183,7 @@
|
||||
<string name="syncing">Synkroniserar…</string>
|
||||
<string name="synchronization_completed">Synkroniseringen är klar</string>
|
||||
<string name="select_a_different_caldav_color">Välj en annan färg (tillämpas kanske bara lokalt)</string>
|
||||
<string name="insufficient_permissions">You are not allowed to write in the selected calendar</string>
|
||||
|
||||
<!-- alternative versions for some languages, use the same translations if you are not sure what this means -->
|
||||
<!-- used in repetition, like "Every last Sunday" -->
|
||||
|
@ -168,8 +168,7 @@
|
||||
<string name="default_reminder_1">Varsayılan hatırlatıcı 1</string>
|
||||
<string name="default_reminder_2">Varsayılan hatırlatıcı 2</string>
|
||||
<string name="default_reminder_3">Varsayılan hatırlatıcı 3</string>
|
||||
<string name="view_to_open_from_widget">Etkinlik listesi widget\'ından açılacak görünüm
|
||||
</string>
|
||||
<string name="view_to_open_from_widget">Etkinlik listesi widget\'ından açılacak görünüm</string>
|
||||
<string name="last_view">Son görünüm</string>
|
||||
|
||||
<!-- CalDAV sync -->
|
||||
@ -184,6 +183,7 @@
|
||||
<string name="syncing">Senkronize ediliyor…</string>
|
||||
<string name="synchronization_completed">Senkronizasyon tamamlandı</string>
|
||||
<string name="select_a_different_caldav_color">Farklı bir renk seçin (yalnızca yerel olarak uygulanabilir)</string>
|
||||
<string name="insufficient_permissions">You are not allowed to write in the selected calendar</string>
|
||||
|
||||
<!-- alternative versions for some languages, use the same translations if you are not sure what this means -->
|
||||
<!-- used in repetition, like "Every last Sunday" -->
|
||||
|
@ -183,6 +183,7 @@
|
||||
<string name="syncing">同步中…</string>
|
||||
<string name="synchronization_completed">同步完成</string>
|
||||
<string name="select_a_different_caldav_color">Select a different color (might be applied locally only)</string>
|
||||
<string name="insufficient_permissions">You are not allowed to write in the selected calendar</string>
|
||||
|
||||
<!-- alternative versions for some languages, use the same translations if you are not sure what this means -->
|
||||
<!-- used in repetition, like "Every last Sunday" -->
|
||||
|
@ -183,6 +183,7 @@
|
||||
<string name="syncing">Syncing…</string>
|
||||
<string name="synchronization_completed">Sync completed</string>
|
||||
<string name="select_a_different_caldav_color">Select a different color (might be applied locally only)</string>
|
||||
<string name="insufficient_permissions">You are not allowed to write in the selected calendar</string>
|
||||
|
||||
<!-- alternative versions for some languages, use the same translations if you are not sure what this means -->
|
||||
<!-- used in repetition, like "Every last Sunday" -->
|
||||
|
Loading…
x
Reference in New Issue
Block a user