FIX : Missing right to edit service note when module product is disabled

This commit is contained in:
Alexandre SPANGARO 2023-02-10 15:00:27 +01:00
parent 791a69dd09
commit 1bc16f47c0

View File

@ -49,7 +49,7 @@ if ($id > 0 || !empty($ref)) {
$object->fetch($id, $ref);
}
$permissionnote = $user->rights->produit->creer; // Used by the include of actions_setnotes.inc.php
$permissionnote = ($user->rights->produit->creer || $user->rights->service->creer); // Used by the include of actions_setnotes.inc.php
if ($object->id > 0) {
if ($object->type == $object::TYPE_PRODUCT) {