activated typescript strict mode

This commit is contained in:
2021-05-22 15:30:04 +02:00
parent a195fafa6b
commit cb2c028ca4
76 changed files with 511 additions and 296 deletions

View File

@@ -18,6 +18,7 @@ export class RoleGuard implements CanActivate {
return this.userService.user$.pipe(
map(user => {
if (!user) return false;
const roles = user.role?.split(';') ?? [];
if (roles.indexOf('admin') !== -1) {
return true;