From 7d4e2405c6559424831f341b23f7220575884dc0 Mon Sep 17 00:00:00 2001 From: Greg Lauckhart Date: Fri, 22 Nov 2024 21:56:11 -0800 Subject: [PATCH] Convert fabric index to proper number ...when computing ACL changes --- .../node/src/behaviors/access-control/AccessControlServer.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/node/src/behaviors/access-control/AccessControlServer.ts b/packages/node/src/behaviors/access-control/AccessControlServer.ts index 480cbe211..07add1568 100644 --- a/packages/node/src/behaviors/access-control/AccessControlServer.ts +++ b/packages/node/src/behaviors/access-control/AccessControlServer.ts @@ -434,8 +434,9 @@ function* computeAclChanges( groupByFabrics(fabricLists, "new", newEntries); for (const fabricIndex in fabricLists) { - const entry = fabricLists[fabricIndex as unknown as FabricIndex]; - yield* computeFabricAclChanges(actor, fabricIndex as unknown as FabricIndex, entry.old, entry.new); + const numericIndex = FabricIndex(Number.parseInt(fabricIndex)); + const entry = fabricLists[numericIndex]; + yield* computeFabricAclChanges(actor, numericIndex, entry.old, entry.new); } }