#11947 Fix agentaccess evaluate

This commit is contained in:
miguel angel rasteu 2023-08-29 13:30:05 +02:00
parent 36d8f3c15a
commit df6d0655d1
1 changed files with 2 additions and 2 deletions

View File

@ -702,8 +702,8 @@ class ConsoleSupervisor
$total_agents = db_get_value('count(*)', 'tagente');
if ($total_agents >= 200) {
if ($config['agentaccess'] !== 0) {
if ($total_agents >= 1) {
if ((int) $config['agentaccess'] !== 0) {
db_process_sql_update('tconfig', ['value' => 0], ['token' => 'agentaccess']);
$this->notify(
[