Surface real upload errors, sync god mode to session

Fixkamo-internal
Shipped
22 Julai 2026, 18:33 UTC
Author
kamo
Commit
035152a

"Save failed: Full logo upload failed" discarded the status and body, so a 403 from the branding gate read identically to a MinIO outage. The server's own message ("Requires organization ownership or the Manage Organization Branding right") was already in the response and thrown away. The background upload in the same handler has always reported status + body; logos and colors now match. Also mirrors god mode into the *** session via the new /api/session/god-mode endpoint. Backend gates read godModeActive off the session, so a flag living only in localStorage was invisible to them and every server-side god bypass stayed shut. Re-asserted once userInfo resolves because sessions are per-tab: a fresh tab starts with the field unset even when localStorage still says the toggle is on.

All changes

Je, unaona nini kuhusu usafiri?

Kila moja ya hizi updates ardhi katika nafasi yako ya kazi moja kwa moja. Kuanza bure na kuangalia kukua wiki baada ya wiki.

Kuwa Huru MileleMtazamo wa bei