diff --git a/htdocs/product/categorie.php b/htdocs/product/categorie.php
index a3da1b2ae43..140b26780fe 100644
--- a/htdocs/product/categorie.php
+++ b/htdocs/product/categorie.php
@@ -210,16 +210,19 @@ if ($_GET["id"] || $_GET["ref"])
// Formulaire ajout dans une categorie
- print '
';
- print '
';
- print '
';
+ if ($user->rights->produit->creer)
+ {
+ print '
';
+ print '';
+ print '
';
+ }
$c = new Categorie($db);
diff --git a/htdocs/product/document.php b/htdocs/product/document.php
index 5f9fd900e51..86126323522 100755
--- a/htdocs/product/document.php
+++ b/htdocs/product/document.php
@@ -245,7 +245,7 @@ if ($product->id)
// Affiche forumlaire upload
- if (defined('MAIN_UPLOAD_DOC') && $conf->upload)
+ if (defined('MAIN_UPLOAD_DOC') && $conf->upload && $user->rights->produit->creer)
{
print_titre($langs->trans('AttachANewFile'));