diff --git a/app/pages/(features)/integration/bpjs/sep/add.vue b/app/pages/(features)/integration/bpjs/sep/add.vue index ed1fa862..eee40750 100644 --- a/app/pages/(features)/integration/bpjs/sep/add.vue +++ b/app/pages/(features)/integration/bpjs/sep/add.vue @@ -20,16 +20,14 @@ const roleAccess: PagePermission = PAGE_PERMISSIONS['/doctor'] const { checkRole, hasCreateAccess } = useRBAC() -console.log(checkRole(roleAccess)) - -// Check if user has access to this page -// const hasAccess = checkRole(roleAccess) -// if (!hasAccess) { -// throw createError({ -// statusCode: 403, -// statusMessage: 'Access denied', -// }) -// } +Check if user has access to this page +const hasAccess = checkRole(roleAccess) +if (!hasAccess) { + throw createError({ + statusCode: 403, + statusMessage: 'Access denied', + }) +} // Define permission-based computed properties const canCreate = true // hasCreateAccess(roleAccess)