36 lines
710 B
PHP
36 lines
710 B
PHP
<?php
|
|
/**
|
|
* Définit les autorisations du plugin GamuTable
|
|
*
|
|
* @plugin GamuTable
|
|
* @copyright 2020
|
|
* @author tofulm
|
|
* @licence GNU/GPL
|
|
* @package SPIP\Gamutable\Autorisations
|
|
*/
|
|
|
|
if (!defined('_ECRIRE_INC_VERSION')) {
|
|
return;
|
|
}
|
|
|
|
|
|
/**
|
|
* Fonction d'appel pour le pipeline
|
|
* @pipeline autoriser */
|
|
function gamutable_autoriser() {
|
|
}
|
|
|
|
function autoriser_gamutable_purger_dist($faire, $type, $id, $qui, $opt) {
|
|
return autoriser('webmestre');
|
|
}
|
|
|
|
function autoriser_gamutablepdf_generer_dist($faire, $type, $id, $qui, $opt) {
|
|
if (intval($qui['id_auteur'])) {
|
|
return true;
|
|
};
|
|
return false;
|
|
}
|
|
|
|
function autoriser_gamutable_modifier_dist($faire, $type, $id, $qui, $opt) {
|
|
return true;
|
|
}
|