|
|
@@ -793,7 +793,7 @@ router.beforeEach(async (to, from, next) => {
|
|
|
const perms = getEffectivePermissions(roles)
|
|
|
if (!hasPermission(perms, requiredPerm)) {
|
|
|
console.warn('Access denied: insufficient permissions for', to.name)
|
|
|
- return next({ path: '/', query: { accessDenied: 'no-permission' }, replace: true })
|
|
|
+ return next({ path: '/403', replace: true })
|
|
|
}
|
|
|
}
|
|
|
return next()
|