ng-ttc-frontend: sep userrole, added roleGuard
Some checks failed
Build Docker Image / Restart Docker Compose (push) Has been cancelled
Build Docker Image / Build Docker Image (push) Has been cancelled

Signed-off-by: supphakitd <67319010028@technictrang.ac.th>
This commit is contained in:
2025-12-03 06:54:07 +07:00
parent 278bfe80ec
commit 60be3f7890
8 changed files with 104 additions and 272 deletions

View File

@@ -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() {
}