diff --git a/htdocs/includes/modules/modProduct.class.php b/htdocs/includes/modules/modProduct.class.php index b5c3146cb64..027ae6d79af 100644 --- a/htdocs/includes/modules/modProduct.class.php +++ b/htdocs/includes/modules/modProduct.class.php @@ -96,40 +96,40 @@ class modProduct extends DolibarrModules $this->rights_class = 'produit'; $r=0; - $r++; $this->rights[$r][0] = 31; // id de la permission $this->rights[$r][1] = 'Lire les produits'; // libelle de la permission $this->rights[$r][2] = 'r'; // type de la permission (deprecie a ce jour) $this->rights[$r][3] = 1; // La permission est-elle une permission par defaut $this->rights[$r][4] = 'lire'; - $r++; + $this->rights[$r][0] = 32; // id de la permission $this->rights[$r][1] = 'Creer/modifier les produits'; // libelle de la permission $this->rights[$r][2] = 'w'; // type de la permission (deprecie a ce jour) $this->rights[$r][3] = 0; // La permission est-elle une permission par defaut $this->rights[$r][4] = 'creer'; - $r++; + $this->rights[$r][0] = 34; // id de la permission $this->rights[$r][1] = 'Supprimer les produits'; // libelle de la permission $this->rights[$r][2] = 'd'; // type de la permission (deprecie a ce jour) $this->rights[$r][3] = 0; // La permission est-elle une permission par defaut $this->rights[$r][4] = 'supprimer'; + $r++; - $this->rights[$r][0] = 36; // id de la permission + $this->rights[$r][0] = 36; // id de la permission $this->rights[$r][1] = 'Voir/gérer les produits cachés'; // libelle de la permission $this->rights[$r][2] = 'r'; // type de la permission (deprecated) $this->rights[$r][3] = 1; // La permission est-elle une permission par defaut $this->rights[$r][4] = 'hidden'; - $r++; + $r++; - $r++; $this->rights[$r][0] = 38; // Must be same permission than in service module $this->rights[$r][1] = 'Exporter les produits'; $this->rights[$r][2] = 'r'; $this->rights[$r][3] = 0; $this->rights[$r][4] = 'export'; + $r++; // Exports diff --git a/htdocs/includes/modules/modService.class.php b/htdocs/includes/modules/modService.class.php index 373764a7abe..ea6b876d2d8 100644 --- a/htdocs/includes/modules/modService.class.php +++ b/htdocs/includes/modules/modService.class.php @@ -88,40 +88,40 @@ class modService extends DolibarrModules $this->rights_class = 'service'; $r=0; - $r++; $this->rights[$r][0] = 531; // id de la permission $this->rights[$r][1] = 'Lire les services'; // libelle de la permission $this->rights[$r][2] = 'r'; // type de la permission (deprecie a ce jour) $this->rights[$r][3] = 1; // La permission est-elle une permission par defaut $this->rights[$r][4] = 'lire'; + $r++; - $r++; $this->rights[$r][0] = 532; // id de la permission $this->rights[$r][1] = 'Creer/modifier les services'; // libelle de la permission $this->rights[$r][2] = 'w'; // type de la permission (deprecie a ce jour) $this->rights[$r][3] = 0; // La permission est-elle une permission par defaut $this->rights[$r][4] = 'creer'; + $r++; - $r++; $this->rights[$r][0] = 534; // id de la permission $this->rights[$r][1] = 'Supprimer les services'; // libelle de la permission $this->rights[$r][2] = 'd'; // type de la permission (deprecie a ce jour) $this->rights[$r][3] = 0; // La permission est-elle une permission par defaut $this->rights[$r][4] = 'supprimer'; + $r++; $this->rights[$r][0] = 536; // id de la permission $this->rights[$r][1] = 'Voir/gérer les services cachés'; // libelle de la permission $this->rights[$r][2] = 'r'; // type de la permission (deprecated) $this->rights[$r][3] = 1; // La permission est-elle une permission par defaut $this->rights[$r][4] = 'hidden'; - $r++; + $r++; - $r++; $this->rights[$r][0] = 538; // Must be same permission than in product module $this->rights[$r][1] = 'Exporter les services'; $this->rights[$r][2] = 'r'; $this->rights[$r][3] = 0; $this->rights[$r][4] = 'export'; + $r++; // Exports diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index 02a79edb0ee..2a526b400c0 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -672,7 +672,7 @@ if ($_GET["action"] == 'create' && ($user->rights->produit->creer || $user->righ $statutarray=array('1' => $langs->trans("OnSell"), '0' => $langs->trans("NotOnSell")); $html->select_array('statut',$statutarray,$_POST["statut"]); print ''; - + // To buy print ''.$langs->trans("Status").' ('.$langs->trans("Buy").')'.''; $statutarray=array('1' => $langs->trans("ProductStatusOnBuy"), '0' => $langs->trans("ProductStatusNotOnBuy")); @@ -904,7 +904,7 @@ if ($_GET["id"] || $_GET["ref"]) } print ''; print ''; - + // To Buy print ''.$langs->trans("Status").' ('.$langs->trans("Buy").')'.''; print '