pour restreindre l'accès à l'espace privé aux admins
This commit is contained in:
parent
b141161623
commit
ea165b1d8e
1 changed files with 10 additions and 0 deletions
|
@ -47,3 +47,13 @@ if (!isset($GLOBALS['z_blocs']))
|
||||||
'header',
|
'header',
|
||||||
'footer',
|
'footer',
|
||||||
'breadcrumb');
|
'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());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue