bullshit implementation

master
FlayInAHook 4 years ago
parent 9f1359e04f
commit 307f5616bc

@ -33,9 +33,9 @@ export class AuthService {
if (value === null){ if (value === null){
value = new AuthUser(); value = new AuthUser();
} }
if (value.user != undefined){ if (value.user !== undefined){
let roles = []; let roles = [];
if (value.user.roles.length !== 0 ){ if (value.user.roles !== undefined ){
for (let role of value.user.roles){ for (let role of value.user.roles){
roles.push(role.name); roles.push(role.name);

Loading…
Cancel
Save