feat(menus): guard public event routes
This commit is contained in:
@@ -28,6 +28,7 @@ export const routes: Routes = [
|
|||||||
path: '',
|
path: '',
|
||||||
pathMatch: 'full',
|
pathMatch: 'full',
|
||||||
canMatch: [isMultiEventStorefront],
|
canMatch: [isMultiEventStorefront],
|
||||||
|
canActivate: [hasMenuGuard('event.index')],
|
||||||
loadComponent: () =>
|
loadComponent: () =>
|
||||||
import('./pages/event-home-page/event-home-page.component').then((m) => m.EventHomePageComponent),
|
import('./pages/event-home-page/event-home-page.component').then((m) => m.EventHomePageComponent),
|
||||||
},
|
},
|
||||||
@@ -95,6 +96,7 @@ export const routes: Routes = [
|
|||||||
{
|
{
|
||||||
path: 'evento/:id',
|
path: 'evento/:id',
|
||||||
canMatch: [isMultiEventStorefront],
|
canMatch: [isMultiEventStorefront],
|
||||||
|
canActivate: [hasMenuGuard('event.detail')],
|
||||||
loadComponent: () =>
|
loadComponent: () =>
|
||||||
import('./pages/event-detail-page/event-detail-page.component').then((m) => m.EventDetailPageComponent),
|
import('./pages/event-detail-page/event-detail-page.component').then((m) => m.EventDetailPageComponent),
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user