We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6618c9 commit 8a6127eCopy full SHA for 8a6127e
packages/schema/src/plugins/enhancer/policy/utils.ts
@@ -1,5 +1,5 @@
1
/* eslint-disable @typescript-eslint/no-explicit-any */
2
-import { type PolicyKind, type PolicyOperationKind } from '@zenstackhq/runtime';
+import type { PolicyKind, PolicyOperationKind } from '@zenstackhq/runtime';
3
import {
4
ExpressionContext,
5
PluginError,
@@ -304,6 +304,7 @@ export function generateQueryGuardFunction(
304
fieldOverride = false
305
) {
306
const statements: (string | WriterFunction)[] = [];
307
+
308
const allowRules = allows.filter((rule) => !hasCrossModelComparison(rule));
309
const denyRules = denies.filter((rule) => !hasCrossModelComparison(rule));
310
0 commit comments