mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-19 19:48:45 +00:00
# Which Problems Are Solved Allows users to be created using the V2 User API # How the Problems Are Solved I added a seperate V2 create user page with the new code using the new apis. # Additional Changes I did some refactorings arround our interceptors as they used an obselete syntax. The password complexity form takes the Buf definitions. # Additional Context - Closes #9430 --------- Co-authored-by: Max Peintner <[email protected]>
10 lines
339 B
TypeScript
10 lines
339 B
TypeScript
import { inject } from '@angular/core';
|
|
import { CanActivateFn } from '@angular/router';
|
|
|
|
import { GrpcAuthService } from '../services/grpc-auth.service';
|
|
|
|
export const roleGuard: CanActivateFn = (route) => {
|
|
const authService = inject(GrpcAuthService);
|
|
return authService.isAllowed(route.data['roles'], route.data['requiresAll']);
|
|
};
|