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
Step 5: a company scope's policies do not require the person to be a member #56
Found by the step 5 whole review (Opus, finding 12), triaged Issue futura (delivery L12).
hub_company's row policies check company_id = conexus.company_id but not that conexus.person_id is a member of that company, and the company id comes from the URL before admission decides. So the database holds a forgotten filter, but not a forgotten admission. The same gap lets a signed-in non-member take a brief FOR NO KEY UPDATE lock on any company before admission refuses (createInvitationCommand; invitation-management.ts, lockCompany before admitInviter).
Trigger: the first route or agent-written query that opens a COMPANY scope without admission.
Direction: a SECURITY DEFINERauth.is_member(person, company), following step 5's A1 pattern, closes it without policy recursion.
Activity