1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/src
Nuno Góis de638b5b8e
fix: segment project fetch when global (#5311)
This fixes an edge case not caught originally in
https://github.com/Unleash/unleash/pull/5304 - When creating a new
segment on the global level:
 - There is no `projectId`, either in the params or body
- The `UPDATE_PROJECT_SEGMENT` is still a part of the permissions
checked on the endpoint
 - There is no `id` on the params

This made it so that we would run `segmentStore.get(id)` with an
undefined `id`, causing issues.

The fix was simply checking for the presence of `params.id` before
proceeding.
2023-11-09 13:27:12 +00:00
..
lib fix: segment project fetch when global (#5311) 2023-11-09 13:27:12 +00:00
mailtemplates
migrations chore: remove enum type from db (#5254) 2023-11-03 09:28:19 +02:00
test feat: API prevents you from deleting segments in crs (#5308) 2023-11-09 12:09:39 +01:00
migrator.ts
server-dev.ts refactor: remove separate admin api feature flag (#5228) 2023-11-08 12:24:11 +01:00
server.ts