mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-27 04:12:38 -08:00
fix(core): Allow listing users when logged in (no-changelog) (#5308)
This commit is contained in:
parent
6f7421f970
commit
b61453d8e6
|
@ -126,11 +126,7 @@ export const setupAuthMiddlewares = (
|
||||||
`/${restEndpoint}/ldap/sync`,
|
`/${restEndpoint}/ldap/sync`,
|
||||||
`/${restEndpoint}/ldap/test-connection`,
|
`/${restEndpoint}/ldap/test-connection`,
|
||||||
];
|
];
|
||||||
const getRestrictedUrls = [
|
const getRestrictedUrls = [`/${restEndpoint}/ldap/sync`, `/${restEndpoint}/ldap/config`];
|
||||||
`/${restEndpoint}/users`,
|
|
||||||
`/${restEndpoint}/ldap/sync`,
|
|
||||||
`/${restEndpoint}/ldap/config`,
|
|
||||||
];
|
|
||||||
const putRestrictedUrls = [`/${restEndpoint}/ldap/config`];
|
const putRestrictedUrls = [`/${restEndpoint}/ldap/config`];
|
||||||
const trimmedUrl = req.url.endsWith('/') ? req.url.slice(0, -1) : req.url;
|
const trimmedUrl = req.url.endsWith('/') ? req.url.slice(0, -1) : req.url;
|
||||||
if (
|
if (
|
||||||
|
|
Loading…
Reference in a new issue