1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

fix: check for project in the action permissions check (#6503)

Fixes the action permission check by also considering the project in the
check.
This commit is contained in:
Nuno Góis 2024-03-11 15:06:00 +00:00 committed by GitHub
parent 977b0e4e28
commit b4454053e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -72,8 +72,9 @@ export const ProjectActionsActionItem = ({
return requiredPermissions.some((requiredPermission) =>
permissions.some(
({ permission, environment }) =>
({ permission, project, environment }) =>
permission === requiredPermission &&
project === projectId &&
environment === actionEnvironment,
),
);