Merge pull request #23872 from aspangaro/14p42

FIX : Missing right to edit service note when module product is disabled
This commit is contained in:
Laurent Destailleur 2023-02-10 19:39:10 +01:00 committed by GitHub
commit a10bd18601
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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