Skip to content

Commit

Permalink
[CCR] Fix reducer function when finding missing privileges (#70158)
Browse files Browse the repository at this point in the history
  • Loading branch information
alisonelizabeth committed Jun 29, 2020
1 parent 40ff82d commit 3571100
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ export const registerPermissionsRoute = ({
});

const missingClusterPrivileges = Object.keys(cluster).reduce(
(permissions: any, permissionName: any) => {
(permissions: string[], permissionName: string) => {
if (!cluster[permissionName]) {
permissions.push(permissionName);
return permissions;
}
return permissions;
},
[] as any[]
[]
);

return response.ok({
Expand Down

0 comments on commit 3571100

Please sign in to comment.