Skip to content

Commit 60bfc99

Browse files
luizhf42gustavosbarreto
authored andcommitted
fix(ui): redirect to Setup if user doesn't have first account
- valid for Community and Enterprise instances
1 parent 915a3bc commit 60bfc99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/router/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export const routes: Array<RouteRecordRaw> = [
9090
requiresAuth: false,
9191
},
9292
beforeEnter: (to, from, next) => {
93-
if (envVariables.isCommunity && !useUsersStore().systemInfo.setup) {
93+
if (!envVariables.isCloud && !useUsersStore().systemInfo.setup) {
9494
next({ name: "Setup" });
9595
}
9696
next();

0 commit comments

Comments
 (0)