1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-06 00:07:44 +01:00
unleash.unleash/frontend/src/component/executiveDashboard
Christopher Kolstad e9d9db17fe
feat: Adding Project access requires same role (#6270)
In order to prevent users from being able to assign roles/permissions
they don't have, this PR adds a check that the user performing the
action either is Admin, Project owner or has the same role they are
trying to grant/add.

This addAccess method is only used from Enterprise, so there will be a
separate PR there, updating how we return the roles list for a user, so
that our frontend can only present the roles a user is actually allowed
to grant.

This adds the validation to the backend to ensure that even if the
frontend thinks we're allowed to add any role to any user here, the
backend can be smart enough to stop it.

We should still update frontend as well, so that it doesn't look like we
can add roles we won't be allowed to.
2024-02-20 15:56:53 +01:00
..
FlagsChart Feat: chart 'no-data' placeholder (#6172) 2024-02-12 16:10:46 +01:00
FlagsProjectChart feat: add posted feedback table (#6113) 2024-02-02 15:39:29 +02:00
FlagStats feat: executive dashboard responsive grid (#6069) 2024-01-30 17:02:13 +01:00
Gauge feat: dashboard lead time gauge (#6225) 2024-02-14 13:32:12 +01:00
LineChart feat: dashboard lead time gauge (#6225) 2024-02-14 13:32:12 +01:00
ProjectHealthChart feat: add posted feedback table (#6113) 2024-02-02 15:39:29 +02:00
ProjectSelect feat: dashboard project filtering (#6259) 2024-02-19 16:28:03 +02:00
TimeToProduction feat: dashboard lead time gauge (#6225) 2024-02-14 13:32:12 +01:00
TimeToProductionChart feat: add posted feedback table (#6113) 2024-02-02 15:39:29 +02:00
UsersChart feat: project applications server side paging and sorting and filtering (#6236) 2024-02-14 13:03:44 +02:00
UserStats feat: executive dashboard responsive grid (#6069) 2024-01-30 17:02:13 +01:00
Widget refactor: LineChart component (#6072) 2024-01-31 10:07:29 +01:00
executive-dashboard-utils.ts feat: project health widget (#6092) 2024-01-31 13:19:28 +01:00
ExecutiveDashboard.tsx feat: Adding Project access requires same role (#6270) 2024-02-20 15:56:53 +01:00
useProjectChartData.ts feat: dashboard lead time gauge (#6225) 2024-02-14 13:32:12 +01:00