KamoCRM

Suspension now actually blocks acceptance (alert + accept + FFA)

Fixkamo-shared-library
Shipped
2 ஜூலை, 2026 அன்று 4:30 PM UTC
Author
Kamo
Commit
2b594d0

findApplicableAllotments filtered 'AND la.isActive = true', so getMostSpecificAllotment returned a less-specific ACTIVE fallback (or nothing) when a member's specific allotment was suspended — the suspension was invisible to every suspension-aware caller (the Leads-Available alert, the per-market grid, and the accept flow), so suspending a member never cleared their lead alert. Drop the isActive filter; callers already check isActive. Also move the SUSPENDED check in acceptNextLead out of the if(!ffa) block so an explicit suspension blocks free-for-all acceptance too (FFA only bypasses the credit balance/spend checks, not a manager's suspension).

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