2
0
forked from Wavyzz/dolibarr

Move api counter at a better place

This commit is contained in:
ldestailleur
2025-07-28 14:31:17 +02:00
parent 72636dde06
commit fe7eda2a4c
2 changed files with 8 additions and 8 deletions

View File

@@ -191,14 +191,6 @@ class DolibarrApiAccess implements iAuthenticate
throw new RestException(401, $genericmessageerroruser);
}
// TODO
// Increase counter of API access
if (getDolGlobalString('API_COUNTER_ENABLED')) {
include DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
dolibarr_set_const($this->db, 'API_COUNTER_COUNT', getDolGlobalInt('API_COUNTER_COUNT') + 1);
//var_dump('eeee');exit;
}
// User seems valid
$fuser->getrights();