Feat: secu: on ajoute dans le nom du fichier de stockage un param : gamuId=xxx avec xxx=id_auteur connecte

This commit is contained in:
Christophe 2023-02-05 22:56:50 +01:00
parent 4aeff901ed
commit 7993ad91c9
2 changed files with 7 additions and 1 deletions

View file

@ -50,6 +50,7 @@
:_id="[(#ENV{_id}|intval)]"
filtreselect="[(#ENV{filtrer,#ENV{filtrerselect}})]"
trier="[(#ENV{trier})]"
:id_auteur="[(#SESSION{id_auteur}|intval)]"
></gamu-table>
</div>
</div>

View file

@ -433,6 +433,9 @@ const props = defineProps({
_id: {
type: Number,
},
id_auteur: {
type: Number,
},
filtreselect: {
type: String,
},
@ -922,7 +925,9 @@ function selectValCol() {
// }
function calculer_nameLocalStorage() {
if (props.apiuri) {
return props.apiuri.match(/.*page=(.*)/)[1];
return (
props.apiuri.match(/.*page=(.*)/)[1] + "&gamuId=" + props.id_auteur
);
}
return "";
}