2 Commits

Author SHA1 Message Date
24273bd9c7 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
2025-11-13 20:22:35 +01:00
Murat Özkorkmaz
8ea8f12fa9 Fixing bug which is showing the roles to any authenticated user. This is only relevant for developers. 2025-11-13 20:22:15 +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 }}" />