Skip to content

Commit ec1ab06

Browse files
committed
fix: fix data access policies condition logic
Data access policies conditions should be joined via AND operator, but the initial implementation used OR by mistake
1 parent 591a383 commit ec1ab06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cubejs-server-core/src/core/CompilerApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ export class CompilerApi {
205205
if (typeof b !== 'boolean') {
206206
throw new Error(`Access policy condition must return boolean, got ${JSON.stringify(b)}`);
207207
}
208-
return a || b;
208+
return a && b;
209209
});
210210
}
211211
return true;

0 commit comments

Comments
 (0)