diff --git a/htdocs/user/class/api_users.class.php b/htdocs/user/class/api_users.class.php index 278367888ac..e68ecb8bc1d 100644 --- a/htdocs/user/class/api_users.class.php +++ b/htdocs/user/class/api_users.class.php @@ -264,7 +264,7 @@ class Users extends DolibarrApi if (!DolibarrApi::_checkAccessToResource('user', $this->useraccount->id, 'user')) { throw new RestException(401, 'Access not allowed for login '.DolibarrApiAccess::$user->login); } - + if ($includepermissions) { $this->useraccount->getRights(); }