Add some checks

This commit is contained in:
2024-05-08 17:23:23 -04:00
parent 274d0193f7
commit b860e1d977
4 changed files with 90 additions and 17 deletions

View File

@@ -44,6 +44,7 @@ const routes: RouteRecordRaw[] = [
path: 'manage',
component: () => import('src/pages/schedule/ManageCalendar.vue'),
name: 'manage-schedule',
meta: { requiresScheduleAdmin: true },
},
],
},
@@ -101,6 +102,7 @@ const routes: RouteRecordRaw[] = [
{
path: '/admin',
component: () => import('layouts/AdminLayout.vue'),
meta: { requiresAdmin: true },
children: [
{
path: '/user',