mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-15 10:25:11 +00:00
feat(console): domain verification, create org, regexp route guards, change org, iam member (#573)
* verification dialog, service * i18n, verification dialog * file saver * savefile * verify trigger * delete project, i18n * org create dialog * org-create-self * stylelint * fix signout redirect * rm unused dialog component, import * project i18n de * regexp roles * use regex to check permissions * border radius * change validation flow * update org member * iam member change * lint * rm unused css * Update console/src/assets/i18n/de.json Co-authored-by: Fabi <[email protected]> * Update console/src/assets/i18n/de.json Co-authored-by: Fabi <[email protected]> * change guard Co-authored-by: Fabi <[email protected]>
This commit is contained in:
@@ -7,10 +7,9 @@ import { AuthService } from '../services/auth.service';
|
||||
name: 'hasRole',
|
||||
})
|
||||
export class HasRolePipe implements PipeTransform {
|
||||
|
||||
constructor(private authService: AuthService) { }
|
||||
|
||||
public transform(values: string[], each: boolean = false): Observable<boolean> {
|
||||
return this.authService.isAllowed(values, each);
|
||||
public transform(values: string[]): Observable<boolean> {
|
||||
return this.authService.isAllowed(values);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { NgModule } from '@angular/core';
|
||||
|
||||
import { RegexpPipe } from './regexp.pipe';
|
||||
|
||||
|
||||
@NgModule({
|
||||
declarations: [
|
||||
RegexpPipe,
|
||||
],
|
||||
imports: [
|
||||
CommonModule,
|
||||
],
|
||||
exports: [
|
||||
RegexpPipe,
|
||||
],
|
||||
})
|
||||
export class RegExpPipeModule { }
|
||||
@@ -0,0 +1,10 @@
|
||||
import { Pipe, PipeTransform } from '@angular/core';
|
||||
|
||||
@Pipe({
|
||||
name: 'regexp',
|
||||
})
|
||||
export class RegexpPipe implements PipeTransform {
|
||||
public transform(value: string): RegExp {
|
||||
return new RegExp(value);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user