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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user