From 1c8e4f94561664b63d4e0c460c2f73101d77f6cb Mon Sep 17 00:00:00 2001 From: "marcimat@free.fr" <> Date: Wed, 22 Jul 2009 06:26:58 +0000 Subject: [PATCH] Mauvaise autorisation (Bernard). --- plugin.xml | 2 +- stats_autoriser.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin.xml b/plugin.xml index 7f3550b..612ed19 100644 --- a/plugin.xml +++ b/plugin.xml @@ -1,7 +1,7 @@ Statistiques Collectif SPIP - 0.1 + 0.1.1 0.1 dev diff --git a/stats_autoriser.php b/stats_autoriser.php index 11dbbc7..c76fda6 100644 --- a/stats_autoriser.php +++ b/stats_autoriser.php @@ -4,10 +4,10 @@ function stats_autoriser(){} function autoriser_statistiques_bouton_dist($faire, $type='', $id=0, $qui = NULL, $opt = NULL){ - return $GLOBALS['visiteur_session']['statut']=='0minirezo'; + return autoriser('voirstats', $type, $id, $qui, $opt); } function autoriser_referers_bouton_dist($faire, $type='', $id=0, $qui = NULL, $opt = NULL){ - return $GLOBALS['visiteur_session']['statut']=='0minirezo'; + return autoriser('voirstats', $type, $id, $qui, $opt); }