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