@palbase/backend 15.0.0 → 17.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1002,7 +1002,7 @@ function defineSchema(input) {
1002
1002
  const table = input.tables[name];
1003
1003
  if (table === void 0) continue;
1004
1004
  const policies = (table.policies ?? []).map(toPolicyDef);
1005
- const rls = table.rls === true || policies.length > 0;
1005
+ const rls = policies.length > 0 || table.rls !== false;
1006
1006
  const tableDef = {
1007
1007
  name,
1008
1008
  columns: table.columns,