Search filter on Ionic

1

I made a filter to perform a search on Ionic 3. Here is 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 information entered by others. I've created a method for this:

exibir(item)
  { 
    item.styleClass = (Number(item.styleClass) == 1)?0:1;
  }

What do I need to have in my method exibir() so that only the logged in user can access the information generated by it alone?

    
asked by anonymous 05.07.2018 / 18:01

0 answers