From 342f850a555e0d9018c4778f5ef6ef892df87747 Mon Sep 17 00:00:00 2001 From: iradraconis <71747937+iradraconis@users.noreply.github.com> Date: Fri, 2 Feb 2024 07:54:34 +0100 Subject: [PATCH] api endpoint for listing calendars, now every user can retrieve calendars that he has access to. --- manifest.json | 2 +- popup.js | 2 +- popup_compose.js | 2 +- popup_menu_bundle_save.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/manifest.json b/manifest.json index 8293635..e0b6c85 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 2, "name": "j-lawyer.org-Thunderbird-Extension", - "version": "0.9.9.8", + "version": "0.9.9.9", "description": "Sendet E-Mails an einen j-lawyer.org Server", "author": "Maximilian Steinert", "icons": { diff --git a/popup.js b/popup.js index e8a8f96..3838fd2 100644 --- a/popup.js +++ b/popup.js @@ -649,7 +649,7 @@ function displayTreeStructure(folderData) { // Funktion zum Abrufen der Kalender vom Server async function getCalendars(username, password, serverAddress) { - const url = serverAddress + '/j-lawyer-io/rest/v4/calendars/list'; + const url = serverAddress + '/j-lawyer-io/rest/v4/calendars/list/'+ username; const headers = new Headers(); const loginBase64Encoded = btoa(unescape(encodeURIComponent(username + ':' + password))); diff --git a/popup_compose.js b/popup_compose.js index 45e7de5..f901e25 100644 --- a/popup_compose.js +++ b/popup_compose.js @@ -462,7 +462,7 @@ function displayTreeStructure(folderData) { async function getCalendars(username, password, serverAddress) { - const url = serverAddress + '/j-lawyer-io/rest/v4/calendars/list'; + const url = serverAddress + '/j-lawyer-io/rest/v4/calendars/list'+ username; const headers = new Headers(); const loginBase64Encoded = btoa(unescape(encodeURIComponent(username + ':' + password))); diff --git a/popup_menu_bundle_save.js b/popup_menu_bundle_save.js index 1cf1b11..5ae6115 100644 --- a/popup_menu_bundle_save.js +++ b/popup_menu_bundle_save.js @@ -504,7 +504,7 @@ function displayTreeStructure(folderData) { async function getCalendars(username, password, serverAddress) { - const url = serverAddress + '/j-lawyer-io/rest/v4/calendars/list'; + const url = serverAddress + '/j-lawyer-io/rest/v4/calendars/list'+ username; const headers = new Headers(); const loginBase64Encoded = btoa(unescape(encodeURIComponent(username + ':' + password)));