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:
parent
4aeff901ed
commit
7993ad91c9
2 changed files with 7 additions and 1 deletions
|
@ -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>
|
||||
|
|
|
@ -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 "";
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue