From ea165b1d8ef0759be078d44fb1ab3016c2b09d7a Mon Sep 17 00:00:00 2001 From: Pierre Date: Mon, 3 Feb 2020 02:21:34 +0100 Subject: [PATCH] =?UTF-8?q?pour=20restreindre=20l'acc=C3=A8s=20=C3=A0=20l'?= =?UTF-8?q?espace=20priv=C3=A9=20aux=20admins?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- balint_options.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/balint_options.php b/balint_options.php index c570f76..ae16382 100644 --- a/balint_options.php +++ b/balint_options.php @@ -47,3 +47,13 @@ if (!isset($GLOBALS['z_blocs'])) 'header', 'footer', 'breadcrumb'); + + +function autoriser_ecrire($faire, $type, $id, $qui, $opt){ +// Pour ne permettre l'accès à l'espace privé qu'aux admins +// (pour les autres, on redirige vers l'accueil) + if ($qui['statut']!='0minirezo'){ + include_spip('inc/headers'); + redirige_par_entete( url_de_base()); + } +}