Repository navigation
Commit 81dba25
committed
fix(plugin-security): explain's record write verdict uses the by-id write path's inputs
security/explain answered record.visible: false for update/delete on rows
the by-id PATCH/DELETE admits, on private-OWD objects:
- M1: Layer 1 kept the platform ownership floor the pre-image gate drops
when the sharing write verdict is allow. The gate's floor decision moves
into resolvePreImageFloorDrop, and explain's computeLayeredRlsFilter
binding asks it for update/delete (behaviour of the gate unchanged).
- M2: canEditRecord / canDeleteRecord asked plugin-sharing with the bare
context. They now stamp __writeScope from resolveWriteScopeForSharing,
overwritten as the middleware's step 2.6 overwrites it.
The on-behalf-of path keeps its previous inputs on both halves.
Claude-Session: https://claude.ai/code/session_01Evb5jFDZGKQE9KG4jbMfMF
Co-authored-by: Claude <noreply@anthropic.com>1 parent 2c1011b commit 81dba25
3 files changed
Lines changed: 511 additions & 30 deletions
File tree
- .changeset
- packages/plugins/plugin-security/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
0 commit comments