fix #18339 : Attempt to read property creer

This commit is contained in:
Eric Seigne 2022-05-22 01:50:01 +02:00
parent 812298f740
commit 45bc1ff287

View File

@ -121,7 +121,9 @@ $usercansend = (empty($conf->global->MAIN_USE_ADVANCED_PERMS) || $user->rights->
$usercancreateorder = $user->rights->commande->creer;
$usercancreateinvoice = $user->rights->facture->creer;
$usercancreatecontract = $user->rights->contrat->creer;
$usercancreateintervention = $user->rights->ficheinter->creer;
if (!empty($conf->ficheinter->enabled)) {
$usercancreateintervention = $user->rights->ficheinter->creer;
}
$usercancreatepurchaseorder = ($user->rights->fournisseur->commande->creer || $user->rights->supplier_order->creer);
$permissionnote = $usercancreate; // Used by the include of actions_setnotes.inc.php