Use getOrganizationByIdWithFeatures in AppAvailabilityInterceptor

FixSecurityService
Shipped
April 20, 2026 at 3:35 PM UTC
Author
Kamo
Commit
0609314

Resolves LazyInitializationException on /api/security/leads and all other CRM/POS-gated paths. The interceptor called org.getFeatures() after the transaction closed; the new method eagerly fetches features in a single JOIN FETCH query inside a read-only transaction.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing