Merge pull request #23872 from aspangaro/14p42
FIX : Missing right to edit service note when module product is disabled
This commit is contained in:
commit
a10bd18601
@ -49,7 +49,7 @@ if ($id > 0 || !empty($ref)) {
|
|||||||
$object->fetch($id, $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->id > 0) {
|
||||||
if ($object->type == $object::TYPE_PRODUCT) {
|
if ($object->type == $object::TYPE_PRODUCT) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user