@happyvertical/smrt-users 0.70.0 → 0.70.2

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.
@@ -211,6 +211,13 @@ inherited permissions automatically, but RLS row filtering remains bound to the
211
211
  session tenant: a root session's app-level guard authorization does not itself
212
212
  permit child rows through RLS. Preserve this distinction.
213
213
 
214
+ A host with run-time models in an app schema passes a `PostgresPolicyScope` (second
215
+ argument; `@happyvertical/smrt-users/postgres-policies`, `applyScopedPostgresPermissionPolicies`
216
+ on a handle it already holds): tables and the `smrt_*` helpers live in
217
+ `schemaName`, never `public`; only `includeClass` classes get policies;
218
+ `permissionsFor` names the slugs; explicit bindings are not applied. Helper bodies
219
+ never call each other (a schema copied whole creates functions in name order).
220
+
214
221
  RolePermission's natural key is `(role_id, permission_id)` (#3329); repeated or
215
222
  concurrent inserts converge without changing the grant ID. Existing deployments
216
223
  must run `deduplicateRolePermissions()` with stopped writers before ordinary