ng-ttc-frontend: sep userrole, added roleGuard
Signed-off-by: supphakitd <67319010028@technictrang.ac.th>
This commit is contained in:
@@ -13,6 +13,12 @@ export class MainLandingComponent implements OnInit {
|
||||
private router: Router
|
||||
) {}
|
||||
|
||||
userData: any = {
|
||||
name: localStorage.getItem('usrthinam') + ' ' + localStorage.getItem('usrthilstnam'),
|
||||
role: localStorage.getItem('usrrol'),
|
||||
avatar: ''
|
||||
};
|
||||
|
||||
ngOnInit() {
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user