mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-12 09:05:12 +00:00
fix(console): Idp settings, settings reset warn dialog, Accept-Language header interceptor, i18n (#3727)
* fix idp table, settings reset warn dialog, fix i18n interceptor, i18n * fix label policy on org change * fallback * fix preview button styles * footer, login-policy null check * org create btn alignment * show error with toast * error toast
This commit is contained in:
@@ -3,12 +3,12 @@ import { Observable } from 'rxjs';
|
||||
import { GrpcAuthService } from 'src/app/services/grpc-auth.service';
|
||||
|
||||
@Pipe({
|
||||
name: 'hasRole',
|
||||
name: 'hasRole',
|
||||
})
|
||||
export class HasRolePipe implements PipeTransform {
|
||||
constructor(private authService: GrpcAuthService) { }
|
||||
constructor(private authService: GrpcAuthService) {}
|
||||
|
||||
public transform(values: string[]): Observable<boolean> {
|
||||
return this.authService.isAllowed(values);
|
||||
}
|
||||
public transform(values: string[], requresAll: boolean = false): Observable<boolean> {
|
||||
return this.authService.isAllowed(values, requresAll);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user