Skip to content

Commit

Permalink
fix: Fix usage of null values in RBAC RDs
Browse files Browse the repository at this point in the history
Make sure null values are not left out when RBAC RD value is an array.
  • Loading branch information
gkarat committed Aug 14, 2023
1 parent a7976ed commit 3b33e20
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/utils/src/RBAC/RBAC.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ function extractResourceDefinitionValues(rds: ResourceDefinition[]) {
if (operation === ResourceDefinitionFilterOperationEnum.In) {
return [
...acc,
...value
.toString()
...(Array.isArray(value) ? value.map((value) => (value === null ? 'null' : value)).toString() : value)
.split(',')
.map((value) => `${key}:${value}`),
];
Expand Down

0 comments on commit 3b33e20

Please sign in to comment.