diff --git a/htdocs/categories/categorie.php b/htdocs/categories/categorie.php index 6aa063a9b4eeb31a682dd2febae18753ed9922f3..1750097b120dabd7001a2e9b967dec31c9a1eae2 100644 --- a/htdocs/categories/categorie.php +++ b/htdocs/categories/categorie.php @@ -379,7 +379,7 @@ else if ($id || $ref) dol_fiche_end(); - formCategory($db,$product,0,($user->rights->produit->creer || $user->rights->service->creer)); + formCategory($db,$product,0,$socid,($user->rights->produit->creer || $user->rights->service->creer)); } if ($type == 3) @@ -604,7 +604,7 @@ else if ($id || $ref) dol_fiche_end(); - formCategory($db,$object,4,$user->rights->societe->creer); + formCategory($db,$object,4,$socid, $user->rights->societe->creer); } }