Mask user for employee on navbar
This commit is contained in:
@@ -60,10 +60,12 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li nz-menu-item routerLinkActive="ant-menu-item-selected">
|
<li nz-menu-item routerLinkActive="ant-menu-item-selected">
|
||||||
<a routerLink="/user">
|
@if (authService.hasRole(['ADMIN'])) {
|
||||||
<nz-icon nzType="user"></nz-icon>
|
<a routerLink="/user">
|
||||||
<span>Utilisateur</span>
|
<nz-icon nzType="user"></nz-icon>
|
||||||
</a>
|
<span>Utilisateur</span>
|
||||||
|
</a>
|
||||||
|
}
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ import {AuthService} from "../../services/auth.service";
|
|||||||
styleUrl: './layout.css',
|
styleUrl: './layout.css',
|
||||||
})
|
})
|
||||||
export class Layout {
|
export class Layout {
|
||||||
private authService = inject(AuthService);
|
protected authService = inject(AuthService);
|
||||||
private router = inject(Router);
|
private router = inject(Router);
|
||||||
|
|
||||||
async disconnect() {
|
async disconnect() {
|
||||||
|
|||||||
Reference in New Issue
Block a user