Modif permission lue pour la suppression d'une commande

This commit is contained in:
Rodolphe Quiedeville 2006-12-18 13:56:20 +00:00
parent f2d4c023e3
commit 37291131ef

View File

@ -260,9 +260,7 @@ if ($_POST['action'] == 'confirm_commande' && $_POST['confirm'] == 'yes' && $use
} }
if ($_POST['action'] == 'confirm_delete' && $_POST['confirm'] == 'yes' && $user->rights->fournisseur->commande->supprimer) if ($_POST['action'] == 'confirm_delete' && $_POST['confirm'] == 'yes' && $user->rights->fournisseur->commande->creer)
{
if ($user->rights->commande->supprimer )
{ {
$commande = new CommandeFournisseur($db); $commande = new CommandeFournisseur($db);
$commande->id = $_GET['id']; $commande->id = $_GET['id'];
@ -270,7 +268,6 @@ if ($_POST['action'] == 'confirm_delete' && $_POST['confirm'] == 'yes' && $user-
Header('Location: index.php'); Header('Location: index.php');
exit; exit;
} }
}
if ($_POST["action"] == 'livraison' && $user->rights->fournisseur->commande->receptionner) if ($_POST["action"] == 'livraison' && $user->rights->fournisseur->commande->receptionner)
{ {