mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-03-17 23:53:48 +01:00
Automated merge from 20.0 to 21.0 by tool pullmerge.sh
This commit is contained in:
@@ -316,7 +316,7 @@ class Users extends DolibarrApi
|
||||
public function post($request_data = null)
|
||||
{
|
||||
// Check user authorization
|
||||
if (!DolibarrApiAccess::$user->hasRight('user', 'creer') && empty(DolibarrApiAccess::$user->admin)) {
|
||||
if (!DolibarrApiAccess::$user->hasRight('user', 'user', 'creer') && empty(DolibarrApiAccess::$user->admin)) {
|
||||
throw new RestException(403, "User creation not allowed for login ".DolibarrApiAccess::$user->login);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user