Fix typo
This commit is contained in:
parent
51d8bd886d
commit
537c6392fb
|
@ -206,7 +206,7 @@ router.beforeEach(async (to, from, next) => {
|
|||
})
|
||||
else {
|
||||
//TODO: improve user authorization
|
||||
const dontHaveAuthorization =
|
||||
const doNotHaveAuthorization =
|
||||
(to.matched.some(record => record.meta.superAdmin) &&
|
||||
!loggedUser.isSuperAdmin) ||
|
||||
(to.matched.some(record => record.meta.tokenCreator) &&
|
||||
|
@ -218,7 +218,7 @@ router.beforeEach(async (to, from, next) => {
|
|||
(to.matched.some(record => record.meta.watcher) &&
|
||||
!loggedUser.isWatcher)
|
||||
|
||||
if (dontHaveAuthorization)
|
||||
if (doNotHaveAuthorization)
|
||||
next({
|
||||
name: 'home',
|
||||
params: {
|
||||
|
|
Loading…
Reference in New Issue
Block a user