parent
5ff6a49819
commit
fd5b69feed
|
|
@ -282,10 +282,10 @@ export class UsersApiClient {
|
||||||
roleIdentifier: string | number
|
roleIdentifier: string | number
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
try {
|
try {
|
||||||
const groupParam = buildIdentifierParam(userIdentifier);
|
const userParam = buildIdentifierParam(userIdentifier);
|
||||||
const roleParam = buildIdentifierParam(roleIdentifier);
|
const roleParam = buildIdentifierParam(roleIdentifier);
|
||||||
const response: ApiResponse = await this.#apiClient.put(
|
const response: ApiResponse = await this.#apiClient.put(
|
||||||
`${this.#USERS_API_PREFIX}/${groupParam}/roles/${roleParam}`
|
`${this.#USERS_API_PREFIX}/${userParam}/roles/${roleParam}`
|
||||||
);
|
);
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
return;
|
return;
|
||||||
Loading…
Reference in New Issue