[PLUGINS] +abomailman
[ptitvelo/web/www.git] / www / plugins / abomailmans / abomailmans_autoriser.php
1 <?php
2 /**
3 * Abomailmans
4 * MaZiaR - NetAktiv
5 * tech@netaktiv.com
6 * © 2007 - 2012
7 */
8
9 /**
10 * Fonction pour le pipeline, n'a rien a effectuer
11 *
12 */
13 function abomailmans_autoriser(){}
14
15 if (!defined("_ECRIRE_INC_VERSION")) return;
16
17 // autorisation des boutons
18 function autoriser_abomailman_bouton_dist($faire, $type, $id, $qui, $opt) {
19 spip_log('bouton autoriser','test');
20 return autoriser('modifier', $type, $id, $qui, $opt);
21 }
22
23 function autoriser_abomailman_creer_dist($faire, $type, $id, $qui, $opt){
24 spip_log('creer autoriser','test');
25 return autoriser('modifier', $type, $id, $qui, $opt);
26 }
27
28 function autoriser_abomailman_modifier_dist($faire, $type, $id, $qui, $opt){
29 return ($qui['statut']=='0minirezo') AND !$qui['restreint'];
30 }
31
32 ?>