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;