Refactor MasterDetailMntC.vue for improved readability and consistency
This commit is contained in:
@@ -26,8 +26,8 @@ export function registerGuards(router: Router) {
|
||||
|
||||
// Role-based access control (RBAC)
|
||||
if (to.meta.roles?.length && !hasAll(to.meta.roles, auth.roles)) {
|
||||
return { name: 'forbidden' }
|
||||
}
|
||||
return { name: 'forbidden' }
|
||||
}
|
||||
|
||||
return true
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user