gamutable/gamutable_autorisations.php
tofulm 8ba264d69b pour les pdfs, on passe par une action afin de pouvoir avoir tous les
cas possibles. Le gros problème a été de gérer la génération du pdf et
surtout son telechargement.
la solution :
- le fichier action cree le pdf et le place dans
  IMG/gamutable_pdf/xxxxxxxxxx.mdf (nom du fichier hashé)
- on ajoute un cron dans 20 secondes pour supprimer ce fichier
- TODO, mainteannt jouer avec l'action !
2022-09-27 15:01:52 +02:00

33 lines
677 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) {
return intval($qui['id_auteur']);
}
function autoriser_gamutable_modifier_dist($faire, $type, $id, $qui, $opt) {
return true;
}