From 8d8d32364e47a4f579cdd86900dde88ef599f48b Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 10 Mar 2006 09:17:41 +0000 Subject: [PATCH] =?UTF-8?q?am=E9lioration=20de=20la=20s=E9curit=E9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/comm/fiche.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/htdocs/comm/fiche.php b/htdocs/comm/fiche.php index c0529840840..a84cbd9393e 100644 --- a/htdocs/comm/fiche.php +++ b/htdocs/comm/fiche.php @@ -47,6 +47,9 @@ if ($conf->fichinter->enabled) $langs->load("interventions"); // Protection quand utilisateur externe $socidp = isset($_GET["socid"])?$_GET["socid"]:''; + +if ($socidp == '') accessforbidden(); + if ($user->societe_id > 0) { $socidp = $user->societe_id;