Repository navigation
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 32 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
✅ SSOT Configuration Compliance: Passing🎉 No new hardcoded values of either class — Known backlog in |
|
Code review on PR #20559 (head c3e0f9b): approve. Read only; I didn't run the tests. PUT and DELETE need owner or admin after the tenant check, so a member gets 403 and another company 404, and the tests assert the store is unchanged through the mounted app. No other HTTP route writes the designation. Low: no test covers a platform admin with no membership, so dropping |
Thinking Path
The CEO designation routes checked company access only, so any member could change or clear the CEO. The new company settings page in #20550 would put that one click away from every member, so the backend rule lands first.
What Changed
llc/api/company_ceo.py: PUT and DELETE callrequire_company_admin_unless_platform, the rulellc/api/approvals.pyandcompany_members.pyuse. Owners, admins and platform admins pass; a member, guest, lead or non-member gets 403; another company still gets 404. GET is unchanged.Verification
test_company_ceo_routes_15872.py: 20 passed, including refusals with the stored CEO unchanged. A real membership row is used.Model Used
Claude Sonnet for the implementation, Claude Opus for coordination.
Single-issue rationale
Refs #20542 and does not close it: the screen hiding its controls needs a server fact that no neighbouring route offers yet, so for now a member sees the refusal. Lands before #20550.