From ff733c5ad7d045d12d42ae3fcdca59f226bd118e Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 24 Jul 2018 20:10:27 +0200 Subject: [PATCH] FIX clean code --- htdocs/user/class/api_users.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); }