From ddf65844ce3a3aaecf7b00053a98f0238f0d04fc Mon Sep 17 00:00:00 2001 From: Greg Lauckhart Date: Sun, 24 Nov 2024 14:20:58 -0800 Subject: [PATCH] Tweak ACL change latestValue ...to make cert tests happy --- .../src/behaviors/access-control/AccessControlServer.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/node/src/behaviors/access-control/AccessControlServer.ts b/packages/node/src/behaviors/access-control/AccessControlServer.ts index a40bd4594..b1593dde4 100644 --- a/packages/node/src/behaviors/access-control/AccessControlServer.ts +++ b/packages/node/src/behaviors/access-control/AccessControlServer.ts @@ -440,7 +440,11 @@ function* computeFabricAclChanges( adminNodeId, adminPasscodeId, changeType, - latestValue: newEntries[i] ?? null, + latestValue: + newEntries[i] ?? + // Unclear why this field is nullable but cert tests fail unless this value is set to "current value + // or latest value before deletion" + oldEntries[i], fabricIndex, }; }