diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 7b43e17..493d934 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -31,7 +31,7 @@ const routes: Routes = [ { path: 'about', component: AboutComponent}, { path: '404', component: NotFoundComponent}, { path: '', redirectTo: 'about', pathMatch: 'full'}, - { path: 'coordinates', loadChildren: () => import('./coordinate/coordinate-routing.module').then(m => m.CoordinateRoutingModule), canActivate: [CheckIsNotAdminGuard]}, + { path: 'coordinates', loadChildren: () => import('./coordinate/coordinate-routing.module').then(m => m.CoordinateRoutingModule), canActivate: [CheckLoggedInGuard]}, ]; @NgModule({ diff --git a/src/app/coordinate/coordinate-detail/coordinate-detail.component.ts b/src/app/coordinate/coordinate-detail/coordinate-detail.component.ts index 02eb0c0..8eb6d19 100644 --- a/src/app/coordinate/coordinate-detail/coordinate-detail.component.ts +++ b/src/app/coordinate/coordinate-detail/coordinate-detail.component.ts @@ -30,8 +30,7 @@ export class CoordinateDetailComponent implements OnInit { } isRole(role: string): boolean { - // return this.authenticationService.isRole(role); - return true; + return this.authenticationService.isRole(role); } goBackToPrevPage(): void { diff --git a/src/app/coordinate/coordinate-list/coordinate-list.component.html b/src/app/coordinate/coordinate-list/coordinate-list.component.html index a71c017..6400419 100644 --- a/src/app/coordinate/coordinate-list/coordinate-list.component.html +++ b/src/app/coordinate/coordinate-list/coordinate-list.component.html @@ -5,7 +5,7 @@