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
|
||||
})
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@ const router = createRouter({
|
||||
|
||||
registerGuards(router)
|
||||
|
||||
function getErrorRouteName (status?: number) {
|
||||
function getErrorRouteName(status?: number) {
|
||||
switch (status) {
|
||||
case 403: {
|
||||
return 'forbidden'
|
||||
|
||||
Reference in New Issue
Block a user