Skip to content

Commit

Permalink
[7.8] [CCR] Fix reducer function when finding missing privileges (#70158
Browse files Browse the repository at this point in the history
) (#70184)
  • Loading branch information
alisonelizabeth authored Jun 29, 2020
1 parent 950ef9d commit bafd3ad
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 bafd3ad

Please sign in to comment.