fix(console): always show settings page to admin (#11779)

# Which Problems Are Solved

The settings tab is hidden when there's only 1 organization. This was
very confusing when I created an IdP using terraform and then could not
find it. I eventually found the `gs` shortcut which brought me to the
org settings. This was last touched here #10912

# How the Problems Are Solved

Always show the settings tab, even if there's just 1 org.

Co-authored-by: Ramon <[email protected]>
This commit is contained in:
Ilia Choly
2026-04-08 09:02:56 +00:00
committed by GitHub
co-authored by Ramon
parent 17f49323dd
commit 0bf3045142
@@ -96,12 +96,7 @@
[routerLinkActive]="['active']"
[routerLinkActiveOptions]="{ exact: false }"
[routerLink]="['/org-settings']"
*ngIf="
(['policy.read'] | hasRole | async) &&
((['iam.read$', 'iam.write$'] | hasRole | async) === false ||
(((authService.cachedOrgs | async)?.length ?? 1) > 1 &&
(['iam.read$', 'iam.write$'] | hasRole | async)))
"
*ngIf="['policy.read'] | hasRole | async"
>
<span class="label">{{ 'MENU.SETTINGS' | translate }}</span>
</a>