forked from Wavyzz/dolibarr
Clean code
This commit is contained in:
@@ -309,7 +309,7 @@ class Orders extends DolibarrApi
|
||||
public function post($request_data = null)
|
||||
{
|
||||
if (!DolibarrApiAccess::$user->hasRight('commande', 'creer')) {
|
||||
throw new RestException(403, "Insuffisant rights");
|
||||
throw new RestException(403, "Insufficiant rights");
|
||||
}
|
||||
// Check mandatory fields
|
||||
$result = $this->_validate($request_data);
|
||||
|
||||
Reference in New Issue
Block a user