fix(core): Allow listing users when logged in (no-changelog) (#5308)

This commit is contained in:
Omar Ajoue 2023-01-31 14:18:23 +01:00 committed by GitHub
parent 6f7421f970
commit b61453d8e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -126,11 +126,7 @@ export const setupAuthMiddlewares = (
`/${restEndpoint}/ldap/sync`,
`/${restEndpoint}/ldap/test-connection`,
];
const getRestrictedUrls = [
`/${restEndpoint}/users`,
`/${restEndpoint}/ldap/sync`,
`/${restEndpoint}/ldap/config`,
];
const getRestrictedUrls = [`/${restEndpoint}/ldap/sync`, `/${restEndpoint}/ldap/config`];
const putRestrictedUrls = [`/${restEndpoint}/ldap/config`];
const trimmedUrl = req.url.endsWith('/') ? req.url.slice(0, -1) : req.url;
if (