mirror of
https://github.com/zitadel/zitadel.git
synced 2025-04-07 18:04:37 +00:00
fix: show settings button for users w/o iam perms (#7848)
Co-authored-by: Max Peintner <max@caos.ch>
This commit is contained in:
parent
82e38e31ea
commit
f5b3d9752a
@ -96,7 +96,12 @@
|
|||||||
[routerLinkActive]="['active']"
|
[routerLinkActive]="['active']"
|
||||||
[routerLinkActiveOptions]="{ exact: false }"
|
[routerLinkActiveOptions]="{ exact: false }"
|
||||||
[routerLink]="['/org-settings']"
|
[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>
|
<span class="label">{{ 'MENU.SETTINGS' | translate }}</span>
|
||||||
</a>
|
</a>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user