1
I made a filter to perform a search on Ionic 3. Here’s my Typescript code:
filtrar()
{
//Filtra
this.auto.storage.get("acesso").then(sessao =>{
var dados = {"token":123,"rg":sessao.rg, "data": this.filtroData, "tipo": this.filtroTipo};
this.items = this.eventosProvider.findAfogamento(dados);
});
}
However, any logged-in user can access the information entered by the others. I created a method for this:
exibir(item)
{
item.styleClass = (Number(item.styleClass) == 1)?0:1;
}
What I need in my method exibir()
so that only the logged-in user can access the information generated only by it?