mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 21.0
This commit is contained in:
@@ -407,6 +407,12 @@ class Users extends DolibarrApi
|
||||
$this->useraccount->context['caller'] = sanitizeVal($request_data['caller'], 'aZ09');
|
||||
continue;
|
||||
}
|
||||
if ($field == 'array_options' && is_array($value)) {
|
||||
foreach ($value as $index => $val) {
|
||||
$this->useraccount->array_options[$index] = $this->_checkValForAPI($field, $val, $this->useraccount);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
if (DolibarrApiAccess::$user->admin) { // If user for API is admin
|
||||
if ($field == 'admin' && $value != $this->useraccount->admin && empty($value)) {
|
||||
|
||||
Reference in New Issue
Block a user