From 9b898432c02ae97b318c4615f1c81dc9c8f001d7 Mon Sep 17 00:00:00 2001 From: Cristiano Date: Fri, 29 May 2026 14:17:45 +0200 Subject: [PATCH] Mask user for employee on navbar --- src/app/components/layout/layout.html | 10 ++++++---- src/app/components/layout/layout.ts | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/app/components/layout/layout.html b/src/app/components/layout/layout.html index 99017a4..9b6c4d1 100644 --- a/src/app/components/layout/layout.html +++ b/src/app/components/layout/layout.html @@ -60,10 +60,12 @@
  • - - - Utilisateur - + @if (authService.hasRole(['ADMIN'])) { + + + Utilisateur + + }
  • diff --git a/src/app/components/layout/layout.ts b/src/app/components/layout/layout.ts index 13d35fa..3a2181d 100644 --- a/src/app/components/layout/layout.ts +++ b/src/app/components/layout/layout.ts @@ -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() {