mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-30 00:16:48 +00:00
refactor(gui): linting
Signed-off-by: Pranav C <61551451+pranavxc@users.noreply.github.com>
This commit is contained in:
@@ -1,14 +1,12 @@
|
||||
export default async function ({store, route, redirect}) {
|
||||
|
||||
export default async function ({ store, route, redirect }) {
|
||||
if (
|
||||
!route.path.startsWith('/nc/view/')
|
||||
&& store.getters['project/GtrIsFirstLoad'] === false
|
||||
&& (route.path === '/' || route.path === '')
|
||||
&& !store.getters['users/GtrIsAuthenticated']
|
||||
!route.path.startsWith('/nc/view/') &&
|
||||
store.getters['project/GtrIsFirstLoad'] === false &&
|
||||
(route.path === '/' || route.path === '') &&
|
||||
!store.getters['users/GtrIsAuthenticated']
|
||||
) {
|
||||
redirect('/user/authentication/signin')
|
||||
}
|
||||
|
||||
}
|
||||
/**
|
||||
* @copyright Copyright (c) 2021, Xgene Cloud Ltd
|
||||
|
||||
Reference in New Issue
Block a user