diff --git a/htdocs/contrat/info.php b/htdocs/contrat/info.php index 774eefbd92e..02cbd998b8f 100644 --- a/htdocs/contrat/info.php +++ b/htdocs/contrat/info.php @@ -1,5 +1,5 @@ +/* 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 @@ -16,7 +16,6 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * $Id$ - * $Source$ */ /** @@ -33,10 +32,12 @@ require_once(DOL_DOCUMENT_ROOT."/contrat/contrat.class.php"); $langs->load("contracts"); $user->getrights('contrat'); +$user->getrights('commercial'); + if (!$user->rights->contrat->lire) accessforbidden(); -// Sécurité accés client et commerciaux +// S�curit� acc�s client et commerciaux $contratid = isset($_GET["id"])?$_GET["id"]:''; if ($user->societe_id > 0) @@ -87,7 +88,7 @@ print ''; print ''; -// Juste pour éviter bug IE qui réorganise mal div précédents si celui-ci absent +// Juste pour �viter bug IE qui r�organise mal div pr�c�dents si celui-ci absent print '
'; print '
'; diff --git a/htdocs/contrat/note.php b/htdocs/contrat/note.php index 768cabc8bf3..9fde0f5632c 100644 --- a/htdocs/contrat/note.php +++ b/htdocs/contrat/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$ */ /** @@ -34,13 +33,15 @@ if ($conf->contrat->enabled) require_once(DOL_DOCUMENT_ROOT."/contrat/contrat.cl $socid=isset($_GET["socid"])?$_GET["socid"]:isset($_POST["socid"])?$_POST["socid"]:""; $user->getrights('contrat'); +$user->getrights('commercial'); + if (!$user->rights->contrat->lire) accessforbidden(); $langs->load("companies"); $langs->load("contracts"); -// Sécurité accés client et commerciaux +// S�curit� acc�s client et commerciaux $contratid = isset($_GET["id"])?$_GET["id"]:''; if ($user->societe_id > 0) @@ -168,7 +169,7 @@ if ($_GET["id"]) } print ""; - // Note privée + // Note priv�e if (! $user->societe_id) { print ''.$langs->trans("NotePrivate").' :';