1
0
mirror of https://github.com/zitadel/zitadel.git synced 2025-04-01 14:32:17 +00:00

fix: show settings button for users w/o iam perms ()

Co-authored-by: Max Peintner <max@caos.ch>
This commit is contained in:
Miguel Cabrerizo 2024-04-29 14:31:13 +02:00 committed by GitHub
parent 82e38e31ea
commit f5b3d9752a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -96,7 +96,12 @@
[routerLinkActive]="['active']"
[routerLinkActiveOptions]="{ exact: false }"
[routerLink]="['/org-settings']"
*ngIf="(['policy.read'] | hasRole | async) && ((authService.cachedOrgs | async)?.length ?? 1) > 1"
*ngIf="
(['policy.read'] | hasRole | async) &&
((['iam.read$', 'iam.write$'] | hasRole | async) === false ||
(((authService.cachedOrgs | async)?.length ?? 1) > 1 &&
(['iam.read$', 'iam.write$'] | hasRole | async)))
"
>
<span class="label">{{ 'MENU.SETTINGS' | translate }}</span>
</a>