Ajout de restriction
This commit is contained in:
parent
437339c821
commit
cc14aca523
@ -210,16 +210,19 @@ if ($_GET["id"] || $_GET["ref"])
|
|||||||
|
|
||||||
|
|
||||||
// Formulaire ajout dans une categorie
|
// Formulaire ajout dans une categorie
|
||||||
print '<br>';
|
if ($user->rights->produit->creer)
|
||||||
print '<form method="post" action="'.DOL_URL_ROOT.'/product/categorie.php?id='.$product->id.'">';
|
{
|
||||||
print '<table class="noborder" width="100%">';
|
print '<br>';
|
||||||
print '<tr class="liste_titre"><td>';
|
print '<form method="post" action="'.DOL_URL_ROOT.'/product/categorie.php?id='.$product->id.'">';
|
||||||
print $langs->trans("ClassifyInCategory").' ';
|
print '<table class="noborder" width="100%">';
|
||||||
print $html->select_all_categories($categorie->id_mere).' <input type="submit" class="button" value="'.$langs->trans("Classify").'"></td>';
|
print '<tr class="liste_titre"><td>';
|
||||||
print '</tr>';
|
print $langs->trans("ClassifyInCategory").' ';
|
||||||
print '</table>';
|
print $html->select_all_categories($categorie->id_mere).' <input type="submit" class="button" value="'.$langs->trans("Classify").'"></td>';
|
||||||
print '</form>';
|
print '</tr>';
|
||||||
print '<br/>';
|
print '</table>';
|
||||||
|
print '</form>';
|
||||||
|
print '<br/>';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$c = new Categorie($db);
|
$c = new Categorie($db);
|
||||||
|
|||||||
@ -245,7 +245,7 @@ if ($product->id)
|
|||||||
|
|
||||||
|
|
||||||
// Affiche forumlaire upload
|
// 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'));
|
print_titre($langs->trans('AttachANewFile'));
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user