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()); + } +}