{"version":3,"file":"9J_P1Ye0.js","sources":["../../../../middleware/admin-access.ts"],"sourcesContent":["export default defineNuxtRouteMiddleware(async (to) => {\n const auth = useAuthStore();\n const isSystemAdmin = await auth.getIsSystemAdmin();\n const isCSPAdmin = await auth.getIsCspAdmin();\n\n if (to.path.includes('/admin/users') && !isSystemAdmin) {\n return navigateTo('/');\n }\n\n if (to.path.includes('/csp-admin/users') && !isCSPAdmin) {\n return navigateTo('/');\n }\n});"],"names":["adminAccess","defineNuxtRouteMiddleware","to","__temp","__restore","auth","useAuthStore","isSystemAdmin","__executeAsync","navigateTo","isCSPAdmin"],"mappings":"0DACI,MAAaA,EAAAC,EAAa,MAAAC,GAAA,CAAA,IAAAC,EAAAC,EACpB,MAAAC,EAAAC,IACAC,GAAA,CAAAJ,EAAAC,CAAA,EAAAI,EAAA,IAAmBH,EAAmB,wCAEzB,CAAcF,EAAAC,CAAA,EAAKI,EAAgB,IAAAH,EAAA,cAAA,CAAA,EAAAF,EAAA,MAAAA,EAAAC,EAAA,EAAAD,GAClD,GAAAD,EAAA,cAAqB,cAAA,GAAA,CAAAK,EACzB,OAAAE,EAAA,GAAA,EAGI,GAAAP,EAAA,cAAqB,kBAAA,GAAA,CAAAQ,EACzB,OAAAD,EAAA,GAAA"}