Repository navigation
Commit 30629ff
committed
fix(dogfood): the criteria-less legacy sharing-rule row carries the organization the admin acts in
The case "a criteria-less rule already IN the table shares nothing and loses
its grants" wrote its legacy row at the driver seam with no organization_id.
Since the organization-less readers of sharing rules retired (ADR-0131 D1/D8,
7cacad5), no admin read resolves such a row, so POST
/sharing/rules/srule_3896_legacy/evaluate answered 404 before the criteria
guard the case pins was reached.
The row now carries the admin's active organization, read off the admin's
own session: the shape a pre-gate row has once the organization-ownership
ceremony attributes it (ADR-0131 D10). Every assertion is unchanged: evaluate
answers below 300, matches 0 records, and materialises no grant.
Claude-Session: https://claude.ai/code/session_01LmjU2x1faLZ39DVTFyVca6
Co-authored-by: Claude <noreply@anthropic.com>1 parent c2d4072 commit 30629ff
1 file changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
137 | 152 | | |
138 | 153 | | |
139 | 154 | | |
| |||
147 | 162 | | |
148 | 163 | | |
149 | 164 | | |
| 165 | + | |
150 | 166 | | |
151 | 167 | | |
152 | 168 | | |
| |||
0 commit comments