From 87b2bad7322d3e5fd49318069ed7f83802532c3f Mon Sep 17 00:00:00 2001
From: Baptiste Toulemonde <toulemonde@cines.fr>
Date: Wed, 15 Dec 2021 15:49:40 +0100
Subject: [PATCH] fix guard

---
 src/app/app-routing.module.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts
index 79dd92633..43a43caf0 100644
--- a/src/app/app-routing.module.ts
+++ b/src/app/app-routing.module.ts
@@ -20,7 +20,7 @@ export interface ICustomRoute extends Route {
 const routes: ICustomRoute[] = [
   { path: '', redirectTo: '/dashboard', pathMatch: 'full' },
   {path: 'callback', component: CallbackComponent},
-  { path: 'dashboard', component: DashboardComponent, canActivate: [ FdpGuard],
+  { path: 'dashboard', component: DashboardComponent, canActivate: [ FdpGuard, AuthGuardService],
       children: [
         { path: 'simplesearch', component: SearchComponent },
         { path: 'repository', component: RepositoryComponent },
-- 
GitLab