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:
parent
977b0e4e28
commit
b4454053e8
@ -72,8 +72,9 @@ export const ProjectActionsActionItem = ({
|
||||
|
||||
return requiredPermissions.some((requiredPermission) =>
|
||||
permissions.some(
|
||||
({ permission, environment }) =>
|
||||
({ permission, project, environment }) =>
|
||||
permission === requiredPermission &&
|
||||
project === projectId &&
|
||||
environment === actionEnvironment,
|
||||
),
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user