mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
fixes to getPoliciesByToken (#81)
This commit is contained in:
@@ -566,8 +566,9 @@ export class ApiService implements ApiServiceAbstraction {
|
|||||||
|
|
||||||
async getPoliciesByToken(organizationId: string, token: string, email: string, organizationUserId: string):
|
async getPoliciesByToken(organizationId: string, token: string, email: string, organizationUserId: string):
|
||||||
Promise<ListResponse<PolicyResponse>> {
|
Promise<ListResponse<PolicyResponse>> {
|
||||||
const r = await this.send('GET', '/organizations/' + organizationId + '/policies?token=' + token +
|
const r = await this.send('GET', '/organizations/' + organizationId + '/policies/token?' +
|
||||||
'&email=' + email + '&organizationUserId=' + organizationUserId, null, false, true);
|
'token=' + encodeURIComponent(token) + '&email=' + encodeURIComponent(email) +
|
||||||
|
'&organizationUserId=' + organizationUserId, null, false, true);
|
||||||
return new ListResponse(r, PolicyResponse);
|
return new ListResponse(r, PolicyResponse);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user