Skip to content

Commit 9c5f265

Browse files
committed
chore(changeset): plugin-security grant holder the caller cannot read
Claude-Session: https://claude.ai/code/session_012dn2AdqWnb3ndnEacKvJvF Co-authored-by: Claude <noreply@anthropic.com>
1 parent f3b46d8 commit 9c5f265

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@objectstack/plugin-security': patch
3+
---
4+
5+
fix(plugin-security): a refused grant holder the caller cannot read is answered as a holder that does not exist
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
A non-system write to `sys_user_position` or `sys_user_permission_set` that names a `user_id` the caller's own `sys_user` read does not return is now answered by the engine's reference check, the way every other user reference that caller names is answered: `400 VALIDATION_FAILED` with the engine's `reference_not_found` entry at `user_id`, in the caller's locale. A holder the caller can read is judged on organization membership as before and keeps the membership refusal with its remedy. Which writes are refused is unchanged, and so are the status and the codes: only the field entry a holder the caller cannot read receives is the reference check's. Under the shipped organization administrator's `sys_user` read (its own row and its organization's members), a user outside the organization now receives that entry.

0 commit comments

Comments
 (0)