public isFunctionAssigned(user: IUser, functionality: string): Observable<boolean> {
//get list of claims assigned
let userClaims: IClaim[] = [];
let functionalities: string[] = [functionality];
let assignedFunctions: string[] = [];
this.getUserAssignedFunctions(user, functionalities).subscribe(
userFunctions => {
return (!(userFunctions && userFunctions.length > 0));
}
);
}