Skip to content

Commit aad86f6

Browse files
authoredAug 14, 2023
fix: Fix usage of null values in RBAC RDs (#1886)
Make sure null values are not left out when RBAC RD value is an array.
1 parent 0d6476c commit aad86f6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎packages/utils/src/RBAC/RBAC.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ function extractResourceDefinitionValues(rds: ResourceDefinition[]) {
3636
if (operation === ResourceDefinitionFilterOperationEnum.In) {
3737
return [
3838
...acc,
39-
...value
40-
.toString()
39+
...(Array.isArray(value) ? value.map((value) => (value === null ? 'null' : value)).toString() : value)
4140
.split(',')
4241
.map((value) => `${key}:${value}`),
4342
];

0 commit comments

Comments
 (0)