mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
Few fixes
This commit is contained in:
@@ -294,18 +294,16 @@ router.beforeEach((to, from, next) => {
|
||||
const authStore = useAuthStore()
|
||||
authStore.initialize().then(() => {
|
||||
authStore.validateAccess()
|
||||
if (to.meta.requiresMailbox && !authStore.authUser.mailbox) {
|
||||
next(false)
|
||||
} else {
|
||||
/*
|
||||
if (to.meta.allowedRoles !== undefined) {
|
||||
if (to.meta.allowedRoles !== undefined) {
|
||||
if (to.meta.allowedRoles.indexOf(authStore.authUser.role) === -1) {
|
||||
next({ name: 'Dashboard' })
|
||||
return
|
||||
next({ name: 'Dashboard' })
|
||||
return
|
||||
}
|
||||
}*/
|
||||
next()
|
||||
}
|
||||
if (to.meta.requiresMailbox && !authStore.authUser.mailbox) {
|
||||
next({ name: 'Dashboard' })
|
||||
}
|
||||
next()
|
||||
})
|
||||
} else {
|
||||
next()
|
||||
|
||||
+1
-1
@@ -51,4 +51,4 @@ rq>=1.13.0
|
||||
django-rq
|
||||
|
||||
# Sieve
|
||||
sievelib>=1.3.0
|
||||
sievelib>=1.4
|
||||
|
||||
Reference in New Issue
Block a user