Skip to content

Commit

Permalink
Fix impersonation by role (wrong header key)
Browse files Browse the repository at this point in the history
  • Loading branch information
CarsonF committed Sep 21, 2023
1 parent c52dbc8 commit a67a092
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/client/links/impersonation.link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const createImpersonationLink = (
...prev.headers,
...pickBy({
'x-cord-impersonate-user': ref?.current?.user,
'x-cord-impersonate-roles': ref?.current?.roles?.join(','),
'x-cord-impersonate-role': ref?.current?.roles?.join(','),
}),
},
}));

0 comments on commit a67a092

Please sign in to comment.