28 lines
549 B
PHP
28 lines
549 B
PHP
<?php
|
|
/**
|
|
* Définit les autorisations du plugin GamuContact
|
|
*
|
|
* @copyright 2021
|
|
* @author tofulm
|
|
* @licence GNU/GPL
|
|
* @package SPIP\Gamucontact\Autorisations
|
|
*/
|
|
|
|
if (!defined('_ECRIRE_INC_VERSION')) {
|
|
return;
|
|
}
|
|
|
|
|
|
/**
|
|
* Fonction d'appel pour le pipeline
|
|
* @pipeline autoriser */
|
|
function gamucontact_autoriser() {
|
|
}
|
|
|
|
/**
|
|
* autorisation pour voir les messages : par défaut 0minirezo
|
|
*
|
|
**/
|
|
function gamucontact_autoriser_messages_voir_dist($faire, $type, $id, $qui, $opt) {
|
|
return in_array($qui['statut'], ['0minirezo']);
|
|
}
|