2
0
forked from Wavyzz/dolibarr

Fix use the good HTTP code

This commit is contained in:
Laurent Destailleur
2024-04-07 14:59:25 +02:00
parent 3fad52815a
commit b5de782c6b
30 changed files with 93 additions and 92 deletions

View File

@@ -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') {