diff --git a/src/services/api.service.ts b/src/services/api.service.ts index a09d9e230b..b57ea4b824 100644 --- a/src/services/api.service.ts +++ b/src/services/api.service.ts @@ -566,8 +566,9 @@ export class ApiService implements ApiServiceAbstraction { async getPoliciesByToken(organizationId: string, token: string, email: string, organizationUserId: string): Promise> { - const r = await this.send('GET', '/organizations/' + organizationId + '/policies?token=' + token + - '&email=' + email + '&organizationUserId=' + organizationUserId, null, false, true); + const r = await this.send('GET', '/organizations/' + organizationId + '/policies/token?' + + 'token=' + encodeURIComponent(token) + '&email=' + encodeURIComponent(email) + + '&organizationUserId=' + organizationUserId, null, false, true); return new ListResponse(r, PolicyResponse); }