diff --git a/htdocs/commande/note.php b/htdocs/commande/note.php index 2c4aedb579b..46a2114a85c 100644 --- a/htdocs/commande/note.php +++ b/htdocs/commande/note.php @@ -1,6 +1,6 @@ - * Copyright (C) 2004-2006 Laurent Destailleur + * Copyright (C) 2004-2007 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -17,7 +17,6 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * $Id$ - * $Source$ */ /** @@ -56,7 +55,7 @@ $commande->fetch($_GET["id"]); /* Actions */ /******************************************************************************/ -if ($_POST["action"] == 'update_public' && $user->rights->facture->creer) +if ($_POST["action"] == 'update_public' && $user->rights->commande->creer) { $db->begin(); @@ -72,7 +71,7 @@ if ($_POST["action"] == 'update_public' && $user->rights->facture->creer) } } -if ($_POST["action"] == 'update' && $user->rights->facture->creer) +if ($_POST["action"] == 'update' && $user->rights->commande->creer) { $db->begin();