2
0
forked from Wavyzz/dolibarr

user hasRight

This commit is contained in:
Frédéric FRANCE
2023-02-27 10:34:28 +01:00
parent e836cc4f55
commit 2daa9b2dba
12 changed files with 12 additions and 12 deletions

View File

@@ -2463,7 +2463,7 @@ class Commande extends CommonOrder
{
$remise = trim($remise) ?trim($remise) : 0;
if ($user->rights->commande->creer) {
if ($user->hasRight('commande', 'creer')) {
$error = 0;
$this->db->begin();