Mask user for employee on navbar

This commit is contained in:
Cristiano
2026-05-29 14:17:45 +02:00
parent d0e98482b9
commit 9b898432c0
2 changed files with 7 additions and 5 deletions
+6 -4
View File
@@ -60,10 +60,12 @@
</ul>
</li>
<li nz-menu-item routerLinkActive="ant-menu-item-selected">
<a routerLink="/user">
<nz-icon nzType="user"></nz-icon>
<span>Utilisateur</span>
</a>
@if (authService.hasRole(['ADMIN'])) {
<a routerLink="/user">
<nz-icon nzType="user"></nz-icon>
<span>Utilisateur</span>
</a>
}
</li>
</ul>
+1 -1
View File
@@ -29,7 +29,7 @@ import {AuthService} from "../../services/auth.service";
styleUrl: './layout.css',
})
export class Layout {
private authService = inject(AuthService);
protected authService = inject(AuthService);
private router = inject(Router);
async disconnect() {