mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-21 06:54:25 +00:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user