Fix: Modif notes non effective

This commit is contained in:
Laurent Destailleur
2007-12-31 12:59:18 +00:00
parent ca0cb7f788
commit 91fe41a5ad

View File

@@ -1,6 +1,6 @@
<?php
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2004-2007 Laurent Destailleur <eldy@users.sourceforge.net>
*
* 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();