API / service accounts take no seat on the agent user limit, the managed instance's or config.php's: getActiveAgentUserCount() leaves them out, so the seats taken, the limit checks and the report to the manager do too; one can be added, enabled, restored or bulk enabled when every seat is taken, New User stays open with the window saying so, and turning an active one back into an agent who signs in needs a free seat (serviceAccountLeavingNeedsSeat()); 26.12.5 changelog

This commit is contained in:
johnnyq
2026-12-02 17:46:03 -05:00
parent c94aeaf4a7
commit bd38983abb
10 changed files with 63 additions and 17 deletions

View File

@@ -572,7 +572,8 @@ function managedReport(): array
$clients = intval(mysqli_fetch_row(mysqli_query($mysqli, "SELECT COUNT(*) FROM clients WHERE client_archived_at IS NULL AND client_lead = 0"))[0] ?? 0);
// Who holds the seats - the active agents (not the support user, which takes none), then the
// invites waiting in date - as getAgentSeatsTaken() counts them
// invites waiting in date - as getAgentSeatsTaken() counts them. API / service accounts are
// listed with 'service' set, and take none either (functions/service_account.php)
$agent_list = [];
$support_user_id = managedSupportUserId();
$service = function_exists('serviceAccountsReady') && serviceAccountsReady();