Merge pull request 'Fixing bug which is showing the roles to any authenticated user. This is only relevant for developers.' (#3) from develop into main
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 51s
Build and Push Docker Image / deploy (push) Successful in 4s

Reviewed-on: #3
This commit is contained in:
2025-11-13 20:22:35 +01:00

View File

@@ -24,7 +24,7 @@ import { Tag } from 'primeng/tag';
<img [src]="logo" alt="App Logo" style="width: 1.3em;"/>
</a>
@if (keycloak.authenticated) {
@if (keycloak.authenticated && keycloak.hasRealmRole("dev")) {
<p-tag severity="success" value="Authenticated" />
@if (keycloak) {
<p-tag severity="info" value="Realm: {{ keycloak.realm }}" />