fix: evite un deprecated qui peut casser si affichage erreurs
This commit is contained in:
parent
361cc1097f
commit
0c8482435d
1 changed files with 4 additions and 1 deletions
|
@ -25,7 +25,10 @@ function autoriser_gamutable_purger_dist($faire, $type, $id, $qui, $opt) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function autoriser_gamutablepdf_generer_dist($faire, $type, $id, $qui, $opt) {
|
function autoriser_gamutablepdf_generer_dist($faire, $type, $id, $qui, $opt) {
|
||||||
return intval($qui['id_auteur']);
|
if (intval($qui['id_auteur'])) {
|
||||||
|
return true;
|
||||||
|
};
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
function autoriser_gamutable_modifier_dist($faire, $type, $id, $qui, $opt) {
|
function autoriser_gamutable_modifier_dist($faire, $type, $id, $qui, $opt) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue