From 88301c23a54a3a94279f16c82ba180fb1c3c0017 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Fri, 18 Dec 2009 17:36:42 +0000 Subject: [PATCH] ajout control permission --- includes/surveillance/surveillance.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/surveillance/surveillance.php b/includes/surveillance/surveillance.php index 09de4f224..0873e0a81 100644 --- a/includes/surveillance/surveillance.php +++ b/includes/surveillance/surveillance.php @@ -135,7 +135,7 @@ function getSurveillance($source, $siret){ $return = formSurveillance($source, $siret, $notEmail); } } - else + elseif(preg_match('/\b'.$assocSourceDroit[$source].'\b/i', $_SESSION['tabInfo']['droits'])) { $return = formSurveillance('', $siret, $notEmail); }