mirror of
https://github.com/itflow-org/itflow
synced 2026-12-04 01:59:00 +00:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user