diff --git a/htdocs/user/class/api_users.class.php b/htdocs/user/class/api_users.class.php index 9bdb456dd34..dd4e60e4617 100644 --- a/htdocs/user/class/api_users.class.php +++ b/htdocs/user/class/api_users.class.php @@ -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"); }