forked from BRETT/BRETT
Initial Commit
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
export default defineNuxtRouteMiddleware(() => {
|
||||
const { can } = useAuth()
|
||||
if (!can('admin.access')) {
|
||||
return navigateTo('/')
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user