mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 00:52:01 +01:00
Fix use the good HTTP code
This commit is contained in:
@@ -1129,7 +1129,7 @@ class Setup extends DolibarrApi
|
||||
$list = array();
|
||||
|
||||
if (!DolibarrApiAccess::$user->admin) {
|
||||
throw new RestException(401, 'Only an admin user can get list of extrafields');
|
||||
throw new RestException(403, 'Only an admin user can get list of extrafields');
|
||||
}
|
||||
|
||||
if ($type == 'thirdparty') {
|
||||
|
||||
Reference in New Issue
Block a user