Skip to content

Commit

Permalink
fix: fix data access policies condition logic
Browse files Browse the repository at this point in the history
Data access policies conditions should be joined via AND operator,
but the initial implementation used OR by mistake
  • Loading branch information
bsod90 committed Nov 20, 2024
1 parent 591a383 commit ec1ab06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cubejs-server-core/src/core/CompilerApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export class CompilerApi {
if (typeof b !== 'boolean') {
throw new Error(`Access policy condition must return boolean, got ${JSON.stringify(b)}`);
}
return a || b;
return a && b;
});
}
return true;
Expand Down

0 comments on commit ec1ab06

Please sign in to comment.