Search filter in Ionic

Asked

Viewed 226 times

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?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.