fix(console): bugs and some imperfections (#1557)

* org refresh, mfa name attribute

* fix org change
This commit is contained in:
Max Peintner
2021-04-08 13:11:12 +02:00
committed by GitHub
parent e1a930d535
commit e7913bde59
15 changed files with 41 additions and 23 deletions
-1
View File
@@ -21,5 +21,4 @@ export class AuthGuard implements CanActivate {
}
return this.auth.authenticated;
}
}
+1 -2
View File
@@ -1,7 +1,7 @@
import { Injectable } from '@angular/core';
import { ActivatedRouteSnapshot, CanActivate, RouterStateSnapshot } from '@angular/router';
import { Observable } from 'rxjs';
import { filter, first, switchMap } from 'rxjs/operators';
import { filter, switchMap } from 'rxjs/operators';
import { GrpcAuthService } from '../services/grpc-auth.service';
@@ -18,7 +18,6 @@ export class RoleGuard implements CanActivate {
): Observable<boolean> {
return this.authService.fetchedZitadelPermissions.pipe(
filter((permissionsFetched) => !!permissionsFetched),
first(),
).pipe(
switchMap(_ => this.authService.isAllowed(route.data['roles'])),
);