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)]"
|
:_id="[(#ENV{_id}|intval)]"
|
||||||
filtreselect="[(#ENV{filtrer,#ENV{filtrerselect}})]"
|
filtreselect="[(#ENV{filtrer,#ENV{filtrerselect}})]"
|
||||||
trier="[(#ENV{trier})]"
|
trier="[(#ENV{trier})]"
|
||||||
|
:id_auteur="[(#SESSION{id_auteur}|intval)]"
|
||||||
></gamu-table>
|
></gamu-table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -433,6 +433,9 @@ const props = defineProps({
|
||||||
_id: {
|
_id: {
|
||||||
type: Number,
|
type: Number,
|
||||||
},
|
},
|
||||||
|
id_auteur: {
|
||||||
|
type: Number,
|
||||||
|
},
|
||||||
filtreselect: {
|
filtreselect: {
|
||||||
type: String,
|
type: String,
|
||||||
},
|
},
|
||||||
|
@ -922,7 +925,9 @@ function selectValCol() {
|
||||||
// }
|
// }
|
||||||
function calculer_nameLocalStorage() {
|
function calculer_nameLocalStorage() {
|
||||||
if (props.apiuri) {
|
if (props.apiuri) {
|
||||||
return props.apiuri.match(/.*page=(.*)/)[1];
|
return (
|
||||||
|
props.apiuri.match(/.*page=(.*)/)[1] + "&gamuId=" + props.id_auteur
|
||||||
|
);
|
||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue