mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-23 11:56:00 +01:00
fixes to getPoliciesByToken (#81)
This commit is contained in:
parent
4aecc53dde
commit
0f699515a4
@ -566,8 +566,9 @@ export class ApiService implements ApiServiceAbstraction {
|
||||
|
||||
async getPoliciesByToken(organizationId: string, token: string, email: string, organizationUserId: string):
|
||||
Promise<ListResponse<PolicyResponse>> {
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user