DM-540 backport to documine

This commit is contained in:
Dan Percic 2023-11-07 13:50:20 +02:00
parent ae35280c9e
commit db294fc909
2 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@ import { ifNotLoggedIn } from '@guards/if-not-logged-in.guard';
import { TrashGuard } from '@guards/trash.guard';
import { CompositeRouteGuard, DEFAULT_REDIRECT_KEY, IqserPermissionsGuard, IqserRoutes, orderedAsyncGuards } from '@iqser/common-ui';
import { TenantSelectComponent } from '@iqser/common-ui/lib/tenants';
import { hasAnyRoleGuard, IqserAuthGuard } from '@iqser/common-ui/lib/users';
import { doesNotHaveAnyRole, hasAnyRole, IqserAuthGuard } from '@iqser/common-ui/lib/users';
import { CustomRouteReuseStrategy } from '@iqser/common-ui/lib/utils';
import { ARCHIVE_ROUTE, BreadcrumbTypes, DOSSIER_ID, DOSSIER_TEMPLATE_ID, DOSSIERS_ARCHIVE, DOSSIERS_ROUTE, FILE_ID } from '@red/domain';
import { RedRoleGuard } from '@users/red-role.guard';
@ -211,14 +211,14 @@ const routes: IqserRoutes = [
},
{
path: ':tenant/main',
canActivate: [orderedAsyncGuards([ifLoggedIn(), mainGuard()])],
canActivate: [orderedAsyncGuards([ifLoggedIn(), hasAnyRole(), mainGuard()])],
component: BaseScreenComponent,
children: mainRoutes,
},
{
path: ':tenant/auth-error',
component: AuthErrorComponent,
canActivate: [hasAnyRoleGuard()],
canActivate: [doesNotHaveAnyRole()],
},
{
path: '**',

@ -1 +1 @@
Subproject commit a6383c1dbc840115897a31567c3f5633ba78b43a
Subproject commit 48b3abaf2c3d113b650a05d6228761eea57b3a41