Update api_access.class.php

This commit is contained in:
Laurent Destailleur 2021-09-01 18:05:24 +02:00 committed by GitHub
parent 359dae6af8
commit 0f325bdd65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -149,6 +149,8 @@ class DolibarrApiAccess implements iAuthenticate
}
$fuser->getrights();
static::$user = $fuser;
// Set the global variable $user to the $user of API
$user = $fuser;
if ($fuser->socid) {