feat: add access control to group management route
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 7s

This commit is contained in:
puriphatt 2025-07-08 09:18:33 +07:00
parent b9f1d04105
commit 088f829146

View file

@ -93,6 +93,10 @@ const routes: RouteRecordRaw[] = [
{
path: '/group-management',
name: '/group-management',
beforeEnter: (to, from, next) => {
if (canAccess('personnel')) next();
else next('/');
},
component: () => import('pages/02_group-management/MainPage.vue'),
},
{