mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-07 22:27:40 +00:00
fix: permission on nav (#3656)
Co-authored-by: Livio Amstutz <livio.a@gmail.com>
This commit is contained in:
parent
5901991dd3
commit
17baf252dd
@ -166,7 +166,7 @@ const routes: Routes = [
|
|||||||
loadChildren: () => import('./pages/org-settings/org-settings.module').then((m) => m.OrgSettingsModule),
|
loadChildren: () => import('./pages/org-settings/org-settings.module').then((m) => m.OrgSettingsModule),
|
||||||
canActivate: [AuthGuard, RoleGuard],
|
canActivate: [AuthGuard, RoleGuard],
|
||||||
data: {
|
data: {
|
||||||
roles: ['iam.read', 'iam.write'],
|
roles: ['org.read', 'org.write'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -50,6 +50,7 @@ import {
|
|||||||
import { StatehandlerService, StatehandlerServiceImpl } from './services/statehandler/statehandler.service';
|
import { StatehandlerService, StatehandlerServiceImpl } from './services/statehandler/statehandler.service';
|
||||||
import { StorageService } from './services/storage.service';
|
import { StorageService } from './services/storage.service';
|
||||||
import { ThemeService } from './services/theme.service';
|
import { ThemeService } from './services/theme.service';
|
||||||
|
import { ToastService } from './services/toast.service';
|
||||||
|
|
||||||
registerLocaleData(localeDe);
|
registerLocaleData(localeDe);
|
||||||
|
|
||||||
@ -175,6 +176,7 @@ const authConfig: AuthConfig = {
|
|||||||
AdminService,
|
AdminService,
|
||||||
KeyboardShortcutsService,
|
KeyboardShortcutsService,
|
||||||
AssetService,
|
AssetService,
|
||||||
|
ToastService,
|
||||||
NavigationService,
|
NavigationService,
|
||||||
{ provide: 'windowObject', useValue: window },
|
{ provide: 'windowObject', useValue: window },
|
||||||
],
|
],
|
||||||
|
@ -248,6 +248,12 @@
|
|||||||
<tr class="highlight" mat-row *matRowDef="let row; columns: displayedColumns"></tr>
|
<tr class="highlight" mat-row *matRowDef="let row; columns: displayedColumns"></tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div *ngIf="(loading$ | async) === false && !dataSource?.data?.length" class="no-content-row">
|
||||||
|
<i class="las la-exclamation"></i>
|
||||||
|
<span>{{ 'IDP.EMPTY' | translate }}</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
<cnsl-paginator
|
<cnsl-paginator
|
||||||
#paginator
|
#paginator
|
||||||
class="paginator"
|
class="paginator"
|
||||||
|
@ -49,9 +49,11 @@
|
|||||||
</ng-container>
|
</ng-container>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button mat-button class="show-all" [routerLink]="['/orgs']" (click)="closedCard.emit()">
|
<ng-template cnslHasRole [hasRole]="['iam.read']">
|
||||||
{{ 'MENU.SHOWORGS' | translate }}
|
<button mat-button class="show-all" [routerLink]="['/orgs']" (click)="closedCard.emit()">
|
||||||
</button>
|
{{ 'MENU.SHOWORGS' | translate }}
|
||||||
|
</button>
|
||||||
|
</ng-template>
|
||||||
|
|
||||||
<ng-template cnslHasRole [hasRole]="['org.create', 'iam.write']">
|
<ng-template cnslHasRole [hasRole]="['org.create', 'iam.write']">
|
||||||
<button mat-button [routerLink]="['/org/create']" (click)="closedCard.emit()">
|
<button mat-button [routerLink]="['/org/create']" (click)="closedCard.emit()">
|
||||||
|
@ -4,7 +4,26 @@
|
|||||||
<mat-spinner diameter="30" *ngIf="loading" color="primary"></mat-spinner>
|
<mat-spinner diameter="30" *ngIf="loading" color="primary"></mat-spinner>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2>{{ 'MFA.LIST.MULTIFACTORTITLE' | translate }}</h2>
|
<h2>{{ 'SETTINGS.LIST.LOGIN' | translate }}</h2>
|
||||||
|
|
||||||
|
<ng-container *ngIf="serviceType === PolicyComponentServiceType.MGMT && !isDefault">
|
||||||
|
<ng-template cnslHasRole [hasRole]="['policy.delete']">
|
||||||
|
<button
|
||||||
|
color="primary"
|
||||||
|
class="loginpolicy-reset-button"
|
||||||
|
matTooltip="{{ 'POLICY.RESET' | translate }}"
|
||||||
|
color="warn"
|
||||||
|
(click)="removePolicy()"
|
||||||
|
mat-stroked-button
|
||||||
|
>
|
||||||
|
{{ 'POLICY.RESET' | translate }}
|
||||||
|
</button>
|
||||||
|
</ng-template>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<br />
|
||||||
|
|
||||||
|
<h3>{{ 'MFA.LIST.MULTIFACTORTITLE' | translate }}</h3>
|
||||||
<p class="cnsl-secondary-text">{{ 'MFA.LIST.MULTIFACTORDESCRIPTION' | translate }}</p>
|
<p class="cnsl-secondary-text">{{ 'MFA.LIST.MULTIFACTORDESCRIPTION' | translate }}</p>
|
||||||
|
|
||||||
<div class="login-policy-row" *ngIf="loginData">
|
<div class="login-policy-row" *ngIf="loginData">
|
||||||
@ -41,7 +60,7 @@
|
|||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
<h2>{{ 'MFA.LIST.SECONDFACTORTITLE' | translate }}</h2>
|
<h3>{{ 'MFA.LIST.SECONDFACTORTITLE' | translate }}</h3>
|
||||||
<p class="cnsl-secondary-text">{{ 'MFA.LIST.SECONDFACTORDESCRIPTION' | translate }}</p>
|
<p class="cnsl-secondary-text">{{ 'MFA.LIST.SECONDFACTORDESCRIPTION' | translate }}</p>
|
||||||
|
|
||||||
<div *ngIf="loginData" class="login-policy-row">
|
<div *ngIf="loginData" class="login-policy-row">
|
||||||
@ -71,7 +90,7 @@
|
|||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
<h2>{{ 'POLICY.LOGIN_POLICY.LIFETIMEDURATIONS' | translate }}</h2>
|
<h3>{{ 'POLICY.LOGIN_POLICY.LIFETIMEDURATIONS' | translate }}</h3>
|
||||||
|
|
||||||
<form class="lifetime-form" (ngSubmit)="savePolicy()" [formGroup]="lifetimeForm" autocomplete="off">
|
<form class="lifetime-form" (ngSubmit)="savePolicy()" [formGroup]="lifetimeForm" autocomplete="off">
|
||||||
<cnsl-form-field class="lifetime-form-field" label="Password Check Lifetime" required="true">
|
<cnsl-form-field class="lifetime-form-field" label="Password Check Lifetime" required="true">
|
||||||
@ -120,7 +139,7 @@
|
|||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
<h2>{{ 'POLICY.LOGIN_POLICY.ADVANCED' | translate }}</h2>
|
<h3>{{ 'POLICY.LOGIN_POLICY.ADVANCED' | translate }}</h3>
|
||||||
|
|
||||||
<div class="max-card-width login-policy-content" *ngIf="loginData">
|
<div class="max-card-width login-policy-content" *ngIf="loginData">
|
||||||
<div class="login-policy-row">
|
<div class="login-policy-row">
|
||||||
@ -192,21 +211,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ng-container *ngIf="serviceType === PolicyComponentServiceType.MGMT && !isDefault">
|
|
||||||
<ng-template cnslHasRole [hasRole]="['policy.delete']">
|
|
||||||
<button
|
|
||||||
color="primary"
|
|
||||||
class="loginpolicy-reset-button"
|
|
||||||
matTooltip="{{ 'POLICY.RESET' | translate }}"
|
|
||||||
color="warn"
|
|
||||||
(click)="removePolicy()"
|
|
||||||
mat-stroked-button
|
|
||||||
>
|
|
||||||
{{ 'POLICY.RESET' | translate }}
|
|
||||||
</button>
|
|
||||||
</ng-template>
|
|
||||||
</ng-container>
|
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
<div class="login-policy-btn-container">
|
<div class="login-policy-btn-container">
|
||||||
|
@ -1450,6 +1450,7 @@
|
|||||||
"DELETE_DESCRIPTION": "Sie sind im Begriff einen Identity Provider zu löschen. Die daruch hervorgerufenen Änderungen sind unwiederruflich. Wollen Sie dies wirklich tun?",
|
"DELETE_DESCRIPTION": "Sie sind im Begriff einen Identity Provider zu löschen. Die daruch hervorgerufenen Änderungen sind unwiederruflich. Wollen Sie dies wirklich tun?",
|
||||||
"DELETE_SELECTION_TITLE": "Identity Providers löschen",
|
"DELETE_SELECTION_TITLE": "Identity Providers löschen",
|
||||||
"DELETE_SELECTION_DESCRIPTION": "Sie sind im Begriff mehrere Identity Provider zu löschen. Die daruch hervorgerufenen Änderungen sind unwiederruflich. Wollen Sie dies wirklich tun?",
|
"DELETE_SELECTION_DESCRIPTION": "Sie sind im Begriff mehrere Identity Provider zu löschen. Die daruch hervorgerufenen Änderungen sind unwiederruflich. Wollen Sie dies wirklich tun?",
|
||||||
|
"EMPTY": "Kein IDP vorhanden",
|
||||||
"OIDC": {
|
"OIDC": {
|
||||||
"TITLE": "OIDC IDP",
|
"TITLE": "OIDC IDP",
|
||||||
"DESCRIPTION": "Geben Sie die Daten OIDC Identity Providers ein."
|
"DESCRIPTION": "Geben Sie die Daten OIDC Identity Providers ein."
|
||||||
|
@ -1450,6 +1450,7 @@
|
|||||||
"DELETE_DESCRIPTION": "You are about to delete an identity provider. The resulting changes are irrevocable. Do you really want to do this?",
|
"DELETE_DESCRIPTION": "You are about to delete an identity provider. The resulting changes are irrevocable. Do you really want to do this?",
|
||||||
"DELETE_SELECTION_TITLE": "Delete Idp",
|
"DELETE_SELECTION_TITLE": "Delete Idp",
|
||||||
"DELETE_SELECTION_DESCRIPTION": "You are about to delete an identity provider. The resulting changes are irrevocable. Do you really want to do this?",
|
"DELETE_SELECTION_DESCRIPTION": "You are about to delete an identity provider. The resulting changes are irrevocable. Do you really want to do this?",
|
||||||
|
"EMPTY": "No IPD available",
|
||||||
"OIDC": {
|
"OIDC": {
|
||||||
"TITLE": "OIDC IDP",
|
"TITLE": "OIDC IDP",
|
||||||
"DESCRIPTION": "Enter the data for the OIDC Identity Provider."
|
"DESCRIPTION": "Enter the data for the OIDC Identity Provider."
|
||||||
|
@ -1450,6 +1450,7 @@
|
|||||||
"DELETE_DESCRIPTION": "Stai per rimuovere un fornitore di identit\u00e0. I cambiamenti risultanti sono irrevocabili. Vuoi davvero farlo?",
|
"DELETE_DESCRIPTION": "Stai per rimuovere un fornitore di identit\u00e0. I cambiamenti risultanti sono irrevocabili. Vuoi davvero farlo?",
|
||||||
"DELETE_SELECTION_TITLE": "Rimuovere IDP",
|
"DELETE_SELECTION_TITLE": "Rimuovere IDP",
|
||||||
"DELETE_SELECTION_DESCRIPTION": "Stai per rimuovere un fornitore di identit\u00e0. I cambiamenti risultanti sono irrevocabili. Vuoi davvero farlo?",
|
"DELETE_SELECTION_DESCRIPTION": "Stai per rimuovere un fornitore di identit\u00e0. I cambiamenti risultanti sono irrevocabili. Vuoi davvero farlo?",
|
||||||
|
"EMPTY": "Nessun IDP disponible",
|
||||||
"OIDC": {
|
"OIDC": {
|
||||||
"TITLE": "OIDC IDP",
|
"TITLE": "OIDC IDP",
|
||||||
"DESCRIPTION": "Inserisci i dati per il OIDC Identity Provider."
|
"DESCRIPTION": "Inserisci i dati per il OIDC Identity Provider."
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
.data-e2e-failure {
|
.data-e2e-failure {
|
||||||
background-color: $warn-color !important;
|
color: $warn-color !important;
|
||||||
color: mat.get-color-from-palette($warn, default-contrast) !important;
|
background-color: mat.get-color-from-palette($background, cards) !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user