Skip to content

Commit

Permalink
fix(manager-react-component): fix IAM check for urn with /
Browse files Browse the repository at this point in the history
ref: ISSUE-13392

Signed-off-by: Nicolas Pierre-charles <[email protected]>
  • Loading branch information
Nicolas Pierre-charles committed Oct 2, 2024
1 parent 5ff618f commit 098779c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
export interface IamObject {
id: string;
urn: string;
displayName?: string;
}

export interface IamInterface {
urns?: string[];
actions?: string[];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const fetchAuthorizationCheck = async (
urn: string,
): Promise<IamCheckResponse> => {
const { data } = await apiClient.v2.post(
`/iam/resource/${urn}/authorization/check`,
`/iam/resource/${encodeURIComponent(urn)}/authorization/check`,
{
actions,
},
Expand Down

0 comments on commit 098779c

Please sign in to comment.