mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-07 14:52:15 +00:00
fix(console): bugs and some imperfections (#1557)
* org refresh, mfa name attribute * fix org change
This commit is contained in:
@@ -21,5 +21,4 @@ export class AuthGuard implements CanActivate {
|
||||
}
|
||||
return this.auth.authenticated;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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'])),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user