|
|
@ -35,9 +35,13 @@ export class AuthService {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (value.user != undefined){
|
|
|
|
if (value.user != undefined){
|
|
|
|
let roles = [];
|
|
|
|
let roles = [];
|
|
|
|
|
|
|
|
if (value.user.roles.length !== 0 ){
|
|
|
|
|
|
|
|
|
|
|
|
for (let role of value.user.roles){
|
|
|
|
for (let role of value.user.roles){
|
|
|
|
roles.push(role.name);
|
|
|
|
roles.push(role.name);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
value.user.rolesString = roles.join(', ');
|
|
|
|
value.user.rolesString = roles.join(', ');
|
|
|
|
console.log("Getting user" + JSON.stringify(value));
|
|
|
|
console.log("Getting user" + JSON.stringify(value));
|
|
|
|
}
|
|
|
|
}
|
|
|
|