You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
18.5 lint: obligation_requester_own update policy declares no check, so a requester can hand their obligation to someone else in the same write #209
Filing class: ① defect flagged by the platform's own gate — reach: pnpm lint on @objectstack 18.5.0 (new suggestion; read, not measured in a browser). Reader: the hotclm lane (src/profiles/requester.profile.ts, policy obligation_requester_own); the PM seat decides whether the hand-off it allows is wanted.
Symptom
18.5.0 adds the suggestion security-update-policy-no-check:
ℹ permission set "clm_requester": update policy "obligation_requester_own" (owner_id == current_user.id)
declares no check. A row-level policy with no `check` also admits new rows the ownership floor admits;
declare `check` to bound what an update may write.
So a requester may update an obligation they own and, in the same write, set owner_id to somebody else (the USING side is checked, the written row is not).
Question for the fix
Since #64 (an obligation's accountable person is its owner_id), is a requester allowed to hand their obligation to another person? If no, declare check: 'owner_id == current_user.id' on the policy; if yes, record that it is by design in a comment so the suggestion is read as acknowledged. Either way, re-drive "edit my obligation" as requester1 after the change.
Business reason
Who is accountable for an obligation drives the due-soon and overdue reminders; a silent re-assignment by a requester moves the reminders away from the person the business expects.
Dedupe: hotclm issues (all states) for obligation_requester_own — 1 hit, #64 (closed, the owner_id ruling this builds on).
Activity