From 19f173ec9081ff8a2f8b81d23d08a7b6d3cb6743 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sun, 17 Apr 2011 18:22:49 +0000 Subject: [PATCH] Fix: bad permission and unused translation --- htdocs/commande/contact.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/htdocs/commande/contact.php b/htdocs/commande/contact.php index f49ef4b1949..4a020bf4cdb 100644 --- a/htdocs/commande/contact.php +++ b/htdocs/commande/contact.php @@ -1,7 +1,7 @@ - * Copyright (C) 2005-2009 Laurent Destailleur - * Copyright (C) 2005-2009 Regis Houssin + * Copyright (C) 2005-2011 Laurent Destailleur + * Copyright (C) 2005-2011 Regis Houssin * * 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 @@ -31,7 +31,6 @@ require_once(DOL_DOCUMENT_ROOT."/contact/class/contact.class.php"); require_once(DOL_DOCUMENT_ROOT."/lib/order.lib.php"); require_once(DOL_DOCUMENT_ROOT.'/core/class/html.formcompany.class.php'); -$langs->load("facture"); $langs->load("orders"); $langs->load("sendings"); $langs->load("companies"); @@ -220,7 +219,7 @@ if ($id > 0 || ! empty($ref)) * Ajouter une ligne de contact * Non affiche en mode modification de ligne */ - if ($_GET["action"] != 'editline' && $user->rights->facture->creer) + if ($_GET["action"] != 'editline' && $user->rights->commande->creer) { print ''; print ''.$langs->trans("Source").'';