Modif permission lue pour la suppression d'une commande
This commit is contained in:
parent
f2d4c023e3
commit
37291131ef
@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user