[PLUGINS] +abomailman
[ptitvelo/web/www.git] / www / plugins / abomailmans / abomailmans_autoriser.php
diff --git a/www/plugins/abomailmans/abomailmans_autoriser.php b/www/plugins/abomailmans/abomailmans_autoriser.php
new file mode 100755 (executable)
index 0000000..ec860f9
--- /dev/null
@@ -0,0 +1,32 @@
+<?php\r
+/**\r
+ * Abomailmans\r
+ * MaZiaR - NetAktiv\r
+ * tech@netaktiv.com\r
+ * © 2007 - 2012\r
+ */\r
+\r
+/**\r
+ * Fonction pour le pipeline, n'a rien a effectuer\r
+ *\r
+*/\r
+function abomailmans_autoriser(){}\r
+\r
+if (!defined("_ECRIRE_INC_VERSION")) return;\r
+\r
+// autorisation des boutons\r
+function autoriser_abomailman_bouton_dist($faire, $type, $id, $qui, $opt) {\r
+       spip_log('bouton autoriser','test');\r
+       return autoriser('modifier', $type, $id, $qui, $opt);\r
+}\r
+\r
+function autoriser_abomailman_creer_dist($faire, $type, $id, $qui, $opt){\r
+       spip_log('creer autoriser','test');\r
+       return autoriser('modifier', $type, $id, $qui, $opt);\r
+}\r
+\r
+function autoriser_abomailman_modifier_dist($faire, $type, $id, $qui, $opt){\r
+       return ($qui['statut']=='0minirezo')  AND !$qui['restreint'];\r
+}\r
+\r
+?>
\ No newline at end of file