From f5b3d9752a19ebf05d5b0f66795d29fd05823bd1 Mon Sep 17 00:00:00 2001 From: Miguel Cabrerizo <30386061+doncicuto@users.noreply.github.com> Date: Mon, 29 Apr 2024 14:31:13 +0200 Subject: [PATCH] fix: show settings button for users w/o iam perms (#7848) Co-authored-by: Max Peintner --- console/src/app/modules/nav/nav.component.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/console/src/app/modules/nav/nav.component.html b/console/src/app/modules/nav/nav.component.html index d601a76be..d61b750d9 100644 --- a/console/src/app/modules/nav/nav.component.html +++ b/console/src/app/modules/nav/nav.component.html @@ -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))) + " > {{ 'MENU.SETTINGS' | translate }}