mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 06:34:05 -08:00
fix(core): Fix issue with falsely skip authorizing (#3087)
This commit is contained in:
parent
4af5168b3b
commit
358a683f38
|
@ -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}`));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue