Skip to content

Commit

Permalink
fix(core): Fix issue with falsely skip authorizing (#3087)
Browse files Browse the repository at this point in the history
  • Loading branch information
krynble committed Apr 6, 2022
1 parent 4af5168 commit 358a683
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/src/UserManagement/UserManagementHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export async function checkPermissionsForExecution(
export function isAuthExcluded(url: string, ignoredEndpoints: string[]): boolean {
return !!ignoredEndpoints
.filter(Boolean) // skip empty paths
.find((ignoredEndpoint) => url.includes(ignoredEndpoint));
.find((ignoredEndpoint) => url.startsWith(`/${ignoredEndpoint}`));
}

/**
Expand Down

0 comments on commit 358a683

Please sign in to comment.