Skip to content

Commit 2e6fe88

Browse files
committed
Force member login for onboarding
1 parent e127b03 commit 2e6fe88

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/apps/onboarding/src/onboarding.routes.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Navigate } from 'react-router-dom'
22

33
import { ToolTitle } from '~/config/constants'
4-
import { lazyLoad, LazyLoadedComponent, PlatformRoute } from '~/libs/core'
4+
import { lazyLoad, LazyLoadedComponent, PlatformRoute, UserRole } from '~/libs/core'
55

66
const PageOnboarding: LazyLoadedComponent = lazyLoad(() => import('./pages/onboarding/index'), 'OnboardingWrapper')
77
const PageStart: LazyLoadedComponent = lazyLoad(() => import('./pages/start/index'), 'PageStart')
@@ -32,6 +32,9 @@ export const onboardingRoutes: ReadonlyArray<PlatformRoute> = [
3232
],
3333
element: <PageOnboarding />,
3434
id: onboardRouteId,
35+
rolesRequired: [
36+
UserRole.member,
37+
],
3538
route: onboardingRootRoute,
3639
title: toolTitle,
3740
},

0 commit comments

Comments
 (0)