diff --git a/htdocs/fichinter/fiche.php3 b/htdocs/fichinter/fiche.php3
index 93e3612fd3f..59738d9d75a 100644
--- a/htdocs/fichinter/fiche.php3
+++ b/htdocs/fichinter/fiche.php3
@@ -25,6 +25,15 @@ require("../project.class.php3");
$db = new Db();
+/*
+ * Sécurité accés client
+ */
+if ($user->societe_id > 0)
+{
+ $action = '';
+ $socidp = $user->societe_id;
+}
+
$sql = "SELECT s.nom, s.idp, s.prefix_comm FROM societe as s WHERE s.idp = $socidp;";
@@ -399,7 +408,7 @@ if ($id)
print '
| Mettre à jour | '; diff --git a/htdocs/pre.inc.php3 b/htdocs/pre.inc.php3 index c8dad231797..5e373036a8e 100644 --- a/htdocs/pre.inc.php3 +++ b/htdocs/pre.inc.php3 @@ -1,8 +1,5 @@ - * - * $Id$ - * $Source$ * * 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 @@ -18,6 +15,9 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * $Id$ + * $Source$ + * */ require ("./main.inc.php3"); @@ -114,7 +114,7 @@ function llxHeader($head = "") { $menu->add("/admin/", "Configuration"); } - if ($conf->voyage) + if ($conf->voyage && $user->societe_id == 0) { $menu->add("/compta/voyage/index.php3","Voyages");