Skip to content

Commit fff0b0a

Browse files
committed
test(plugin-auth): the owner-bind gate fixture's grant carries the name the platform stores
The fixture arrived from main with an id-only grant; the default-organization bootstrap now finds the platform administrator by the grant's set name. Claude-Session: https://claude.ai/code/session_01WkL6Eijt432S1Y7ekb6ovQ Co-authored-by: Claude <noreply@anthropic.com>
1 parent e6879a8 commit fff0b0a

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎packages/plugins/plugin-auth/src/default-org-bootstrap-once.test.ts‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,11 @@ type Row = Record<string, any>;
6565
function rig(seed: Partial<Record<string, Row[]>> = {}) {
6666
const tables: Record<string, Row[]> = {
6767
sys_permission_set: [{ id: 'ps_admin', name: 'admin_full_access' }],
68-
// The platform admin `u1`, through the legacy grant anchor `single` reads.
69-
sys_user_permission_set: [{ id: 'ups1', user_id: 'u1', permission_set_id: 'ps_admin', organization_id: null }],
68+
// The platform admin `u1`, through the legacy grant anchor `single` reads
69+
// — by the set's name, which every platform grant writer stores (ADR-0131 D4).
70+
sys_user_permission_set: [
71+
{ id: 'ups1', user_id: 'u1', permission_set_id: 'ps_admin', permission_set: 'admin_full_access', organization_id: null },
72+
],
7073
sys_organization: [],
7174
sys_member: [],
7275
sys_migration: [],

0 commit comments

Comments
 (0)