Skip to content

Commit

Permalink
api endpoint for listing calendars, now every user can retrieve calen…
Browse files Browse the repository at this point in the history
…dars that he has access to.
  • Loading branch information
iradraconis committed Feb 2, 2024
1 parent 88b5363 commit 342f850
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)));

Expand Down
2 changes: 1 addition & 1 deletion popup_compose.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)));

Expand Down
2 changes: 1 addition & 1 deletion popup_menu_bundle_save.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)));

Expand Down

0 comments on commit 342f850

Please sign in to comment.