fix: Show billing upgrade page if there is a mismatch in the user count (#11886)

Disable features/show billing upgrade for accounts with more users than
the one in the license.

---------

Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
This commit is contained in:
Pranav
2025-07-06 19:30:27 -07:00
committed by GitHub
parent b8814a8bd5
commit b72848513f
5 changed files with 13 additions and 5 deletions

View File

@@ -65,7 +65,10 @@ class Enterprise::Api::V1::AccountsController < Api::BaseController
{
'conversation' => {},
'non_web_inboxes' => {},
'agents' => {},
'agents' => {
'allowed' => @account.usage_limits[:agents],
'consumed' => agents(@account)
},
'captain' => @account.usage_limits[:captain]
}
end