0
GSOFT created
Suppose I have a variable used to store current user, I use this variable to filter data. Where should I put the code below? And How can I use it across all components?
async getCurrentLoginInformations(): Promise<string>{
let result = await this._sessionAppService.getCurrentLoginInformations().toPromise();
this.userIdFilter = result.user.userName;
if (this.userIdFilter == 'admin')
{this.userIdFilter = '';}
return this.userIdFilter;
}