Skip to content

Commit

Permalink
[7.x] [CCR] Fix reducer function when finding missing privileges (#70…
Browse files Browse the repository at this point in the history
…158) (#70183)
  • Loading branch information
alisonelizabeth authored Jun 29, 2020
1 parent 2c48a90 commit 33ddee3
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 33ddee3

Please sign in to comment.