diff --git a/htdocs/categories/create.php b/htdocs/categories/create.php index 3691ee2fcff..05dcea62885 100644 --- a/htdocs/categories/create.php +++ b/htdocs/categories/create.php @@ -29,7 +29,7 @@ require "./pre.inc.php"; -if (!$user->rights->categorie->creer) accessforbidden(); +if (!$user->rights->categorie->lire) accessforbidden(); if (isset ($_REQUEST['choix'])) { @@ -45,50 +45,31 @@ else llxHeader("","",$langs->trans("Categories")); -print_fiche_titre($langs->trans("CreateCat")); +/* + * Action création du produit + */ +if ($_GET["action"] == 'create' && $user->rights->produit->creer) +{ + print '