Security & access-control hardening
Several access-control fixes following a full security review:
- Closed a permission gap that could have let a signed-in user grant themselves access to an organization or project they weren't a member of.
- API keys now strictly honor their scope: a read-only key can no longer create, edit, or delete payout configuration (it receives a clear "write scope required" error).
- Locked down internal database functions and tightened tenant scoping on analytics so data can never be read across organizations.
- Account impersonation (used only by platform support) is now verified on every request and cannot be spoofed.