1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-20 00:08:02 +01:00
unleash.unleash/src/lib/features/private-project
Jaanus Sellin 832884b4f5
fix: admin token should be passed forward from controllers (#5960)
We were sending `user.id` to the service, but if an admin token is used,
there is no `user.id.` Instead, there is
`user.internalAdminTokenUserId`. so we need to use the special method
`extractUserIdFromUser`.

This PR adds this implementation, and now the service correctly
retrieves the appropriate ID for admins.

Related to: https://github.com/Unleash/unleash/pull/5924
2024-01-30 11:03:15 +02:00
..
createPrivateProjectChecker.ts fix(import): making all imports relative and removing baseUrl (#5847) 2024-01-17 15:33:03 +02:00
fakePrivateProjectChecker.ts chore: remove private projects flag (#5743) 2024-01-02 15:53:26 +02:00
privateProjectChecker.ts feat: optimize private projects for enterprise (#4812) 2023-09-22 11:54:33 +03:00
privateProjectCheckerType.ts feat: optimize private projects for enterprise (#4812) 2023-09-22 11:54:33 +03:00
privateProjectStore.ts fix: admin token should be passed forward from controllers (#5960) 2024-01-30 11:03:15 +02:00
privateProjectStoreType.ts feat: optimize private projects for enterprise (#4812) 2023-09-22 11:54:33 +03:00