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
Reviewed-on: #3
This commit is contained in:
@@ -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 }}" />
|
||||
|
||||
Reference in New Issue
Block a user