fix: bring back page entry sep
This commit is contained in:
@@ -20,16 +20,14 @@ const roleAccess: PagePermission = PAGE_PERMISSIONS['/doctor']
|
|||||||
|
|
||||||
const { checkRole, hasCreateAccess } = useRBAC()
|
const { checkRole, hasCreateAccess } = useRBAC()
|
||||||
|
|
||||||
console.log(checkRole(roleAccess))
|
Check if user has access to this page
|
||||||
|
const hasAccess = checkRole(roleAccess)
|
||||||
// Check if user has access to this page
|
if (!hasAccess) {
|
||||||
// const hasAccess = checkRole(roleAccess)
|
throw createError({
|
||||||
// if (!hasAccess) {
|
statusCode: 403,
|
||||||
// throw createError({
|
statusMessage: 'Access denied',
|
||||||
// statusCode: 403,
|
})
|
||||||
// statusMessage: 'Access denied',
|
}
|
||||||
// })
|
|
||||||
// }
|
|
||||||
|
|
||||||
// Define permission-based computed properties
|
// Define permission-based computed properties
|
||||||
const canCreate = true // hasCreateAccess(roleAccess)
|
const canCreate = true // hasCreateAccess(roleAccess)
|
||||||
|
|||||||
Reference in New Issue
Block a user