Skip to content

Commit 20eb5f1

Browse files
committed
test(plugin-security): the organization-administrator double refuses WHERE combinators it does not implement
Claude-Session: https://claude.ai/code/session_013WG7E4zFnUTehQ9UXwyQtT Co-authored-by: Claude <noreply@anthropic.com>
1 parent 12ff362 commit 20eb5f1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎packages/plugins/plugin-security/src/delegated-admin-gate.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,6 +1103,7 @@ function makeOrganizationHarness() {
11031103
};
11041104
const matches = (row: any, where: any): boolean =>
11051105
Object.entries(where ?? {}).every(([k, v]) => {
1106+
if (k.startsWith('$')) throw new Error(`fake driver: unsupported operator ${k}`);
11061107
if (v && typeof v === 'object' && Array.isArray((v as any).$in)) return (v as any).$in.includes(row[k]);
11071108
return row[k] === v;
11081109
});

0 commit comments

Comments
 (0)