[#313] removed withRights (#354)

Co-authored-by: Camille Moussu <cmoussu@linagora.com>
This commit is contained in:
Camille Moussu
2025-11-24 21:32:15 +01:00
committed by GitHub
parent 6b6c140854
commit 531d29f2ce
5 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -91,7 +91,7 @@ describe("CalendarSearch", () => {
await waitFor(() => {
expect(mockedGetCalendars).toHaveBeenCalledWith(
"user123",
"sharedPublic=true&withRights=true"
"sharedPublic=true&"
);
});
@@ -373,7 +373,7 @@ describe("CalendarSearch", () => {
await waitFor(() => {
expect(mockedGetCalendars).toHaveBeenCalledWith(
"user123",
"sharedPublic=true&withRights=true"
"sharedPublic=true&"
);
});
@@ -32,7 +32,7 @@ describe("Calendar API", () => {
const calendars = await getCalendars(mockUserId);
expect(api.get).toHaveBeenCalledWith(
`dav/calendars/${mockUserId}.json?personal=true&sharedDelegationStatus=accepted&sharedPublicSubscription=true&withRights=true`,
`dav/calendars/${mockUserId}.json?personal=true&sharedDelegationStatus=accepted&sharedPublicSubscription=true&`,
{
headers: { Accept: "application/calendar+json" },
}
+1 -1
View File
@@ -282,7 +282,7 @@ export default function CalendarSearch({
value.map(async (user: User) => {
const cals = (await getCalendars(
user.openpaasId,
"sharedPublic=true&withRights=true"
"sharedPublic=true&"
)) as Record<string, any>;
return cals._embedded?.["dav:calendar"]
? cals._embedded["dav:calendar"].map(
+1 -1
View File
@@ -2,7 +2,7 @@ import { api } from "../../utils/apiUtils";
export async function getCalendars(
userId: string,
scope: string = "personal=true&sharedDelegationStatus=accepted&sharedPublicSubscription=true&withRights=true",
scope: string = "personal=true&sharedDelegationStatus=accepted&sharedPublicSubscription=true&",
signal?: AbortSignal
) {
const calendars = await api
+1 -1
View File
@@ -167,7 +167,7 @@ export const getTempCalendarsListAsync = createAsyncThunk<
const calendars = (await getCalendars(
tempUser.openpaasId ?? "",
"sharedPublic=true&WithRights=true"
"sharedPublic=true&"
)) as Record<string, any>;
const rawCalendars = calendars._embedded["dav:calendar"];