KamoCRM

A delegated session's GD needs a god-mode window

FixBillingService
Shipped
November 15, 2026 at 6:00 AM UTC
Author
Kamo
Commit
291de32

GodModeVerifier.godPass is now the one god rule in BillingService: users.is_god re-read from the DB, and with a session on the request (minted for the member) an open window || (GD && !delegated), delegated being a non-blank SUDO_MEMBER_ID (System User / impersonation), matching shared-lib godPassesRightChecks; without a session the System User is never god. PlatformAdminInterceptor and EnterprisePlanGuard use it and hand the god pass (not false/the window) to PlatformRightsResolver; isActingAsGod and isGod (owner/seller gates) use it too.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing