diff --git a/web/src/router/index.js b/web/src/router/index.js index 8a84c40..6efca2f 100755 --- a/web/src/router/index.js +++ b/web/src/router/index.js @@ -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: {