Skip to content

Commit 80e966f

Browse files
os-zhuangclaude
andcommitted
chore(changeset): ADR-0057 ERP authorization core (#2077)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 59e01f4 commit 80e966f

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

.changeset/adr-0057-erp-authz.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
"@objectstack/spec": minor
3+
"@objectstack/plugin-security": minor
4+
"@objectstack/plugin-sharing": minor
5+
"@objectstack/runtime": minor
6+
"@objectstack/platform-objects": minor
7+
"@objectstack/objectql": minor
8+
"@objectstack/plugin-approvals": patch
9+
---
10+
11+
ADR-0057 — ERP authorization core. Adds permission-grant access DEPTH
12+
(`own`/`own_and_reports`/`unit`/`unit_and_below`/`org`), renames `sys_department`
13+
`sys_business_unit` (pre-launch, no aliases), introduces the platform-owned
14+
`sys_user_role` assignment, and seeds stack-declared `roles`/`sharingRules` into
15+
`sys_role`/`sys_sharing_rule` at boot (closes #2077). Hierarchy-relative scopes are
16+
delegated to a pluggable `IHierarchyScopeResolver` (open edition fails closed to
17+
owner-only; `defineStack` errors without `requires: ['hierarchy-security']`). Also
18+
fixes a latent over-grant where `engine.find({ filter })` was ignored (driver reads
19+
`where`) — normalized `filter``where` in the engine.

0 commit comments

Comments
 (0)