mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-09-24 14:31:16 +00:00
Add AuthGuard (#1207)
This commit is contained in:
committed by
Cilibiu Bogdan
parent
087b23f313
commit
aa8a66f942
@@ -35,7 +35,7 @@ import {
|
|||||||
AppSharedRuleGuard,
|
AppSharedRuleGuard,
|
||||||
GenericErrorComponent
|
GenericErrorComponent
|
||||||
} from '@alfresco/aca-shared';
|
} from '@alfresco/aca-shared';
|
||||||
import { AuthGuardEcm } from '@alfresco/adf-core';
|
import { AuthGuardEcm, AuthGuard } from '@alfresco/adf-core';
|
||||||
|
|
||||||
export const APP_ROUTES: Routes = [
|
export const APP_ROUTES: Routes = [
|
||||||
{
|
{
|
||||||
@@ -73,6 +73,7 @@ export const APP_ROUTES: Routes = [
|
|||||||
{
|
{
|
||||||
path: '',
|
path: '',
|
||||||
component: AppLayoutComponent,
|
component: AppLayoutComponent,
|
||||||
|
canActivate: [AuthGuard],
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: '',
|
path: '',
|
||||||
@@ -332,7 +333,6 @@ export const APP_ROUTES: Routes = [
|
|||||||
component: GenericErrorComponent
|
component: GenericErrorComponent
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
canActivateChild: [AuthGuardEcm],
|
canActivateChild: [AuthGuardEcm]
|
||||||
canActivate: [AuthGuardEcm]
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
Reference in New Issue
Block a user