Skip to content
This repository has been archived by the owner on May 28, 2019. It is now read-only.

Commit

Permalink
#42 Fix de la faille permettant de marquer comme vendu un item de n'i…
Browse files Browse the repository at this point in the history
…mporte qui
  • Loading branch information
bulton-fr committed Jan 25, 2014
1 parent 3505c95 commit 02a06e7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion controlers/perso/itemVendu.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,11 @@
if(empty($ref)) {ErrorView(400);}

$MPersoItem = new \modeles\PersoItem;
if(!$MPersoItem->setVendu($ref, $typeAchat, $po)) {ErrorView(500);}
$persoItem = $MPersoItem->getPersoItem($ref);

if($idUser == $persoItem['idUser'])
{
if(!$MPersoItem->setVendu($ref, $typeAchat, $po)) {ErrorView(500);}
}
else {ErrorView(500);}
?>

0 comments on commit 02a06e7

Please sign in to comment.