From b63fc1a50ada38916341df73582d89d09131d12a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 14 Mar 2006 22:50:16 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20Droits=20non=20charg=E9s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/includes/modules/modCommercial.class.php | 4 ++-- htdocs/societe/info.php | 6 +++--- htdocs/societe/notify/fiche.php | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/htdocs/includes/modules/modCommercial.class.php b/htdocs/includes/modules/modCommercial.class.php index 8f8561303da..dbe6e073445 100644 --- a/htdocs/includes/modules/modCommercial.class.php +++ b/htdocs/includes/modules/modCommercial.class.php @@ -1,8 +1,8 @@ - * Copyright (C) 2004 Laurent Destailleur + * Copyright (C) 2004-2006 Laurent Destailleur * Copyright (C) 2004 Sebastien Di Cintio - * Copyright (C) 2004 Benoit Mortier + * Copyright (C) 2004 Benoit Mortier * * 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 diff --git a/htdocs/societe/info.php b/htdocs/societe/info.php index 755a4561c50..cb55c8fcf60 100644 --- a/htdocs/societe/info.php +++ b/htdocs/societe/info.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2004-2006 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 @@ -32,11 +32,11 @@ require_once (DOL_DOCUMENT_ROOT."/societe.class.php"); $langs->load("companies"); $langs->load("other"); +$user->getrights('commercial'); + // Sécurité accés client $socid = isset($_GET["socid"])?$_GET["socid"]:''; - if ($socid == '') accessforbidden(); - if ($user->societe_id > 0) { $action = ''; diff --git a/htdocs/societe/notify/fiche.php b/htdocs/societe/notify/fiche.php index 76bb88df937..09c155e1c56 100644 --- a/htdocs/societe/notify/fiche.php +++ b/htdocs/societe/notify/fiche.php @@ -1,6 +1,6 @@ - * Copyright (C) 2004-2005 Laurent Destailleur + * Copyright (C) 2004-2006 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 @@ -31,11 +31,11 @@ require("pre.inc.php"); $langs->load("companies"); +$user->getrights('commercial'); + // Sécurité accés client $socid = isset($_GET["socid"])?$_GET["socid"]:''; - if ($socid == '') accessforbidden(); - if ($user->societe_id > 0) { $action = '';