Merge pull request #9148 from hregis/develop_api

FIX clean code
This commit is contained in:
Laurent Destailleur 2018-07-24 21:41:41 +02:00 committed by GitHub
commit 0c0c9269d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,7 +67,7 @@ class Users extends DolibarrApi
global $db, $conf;
$obj_ret = array();
se
if(! DolibarrApiAccess::$user->rights->user->user->lire) {
throw new RestException(401, "You are not allowed to read list of users");
}