mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-23 08:28:10 +00:00
fix issue: 5137 protected users and admin route with admin protection (#5263)
This commit is contained in:
parent
c3d50df9bd
commit
8e525b60e0
@ -170,6 +170,8 @@ export const ROUTES = {
|
|||||||
SQL_BUILDER: '/sql-builder',
|
SQL_BUILDER: '/sql-builder',
|
||||||
TEAMS_AND_USERS: '/teams-and-users',
|
TEAMS_AND_USERS: '/teams-and-users',
|
||||||
TEAMS_AND_USERS_DETAILS: `/teams-and-users/${PLACEHOLDER_ROUTE_TEAM_AND_USER}`,
|
TEAMS_AND_USERS_DETAILS: `/teams-and-users/${PLACEHOLDER_ROUTE_TEAM_AND_USER}`,
|
||||||
|
TEAMS_AND_USERS_USERS: `/teams-and-users/users`,
|
||||||
|
TEAMS_AND_USERS_ADMINS: `/teams-and-users/admins`,
|
||||||
SETTINGS: '/settings',
|
SETTINGS: '/settings',
|
||||||
STORE: '/store',
|
STORE: '/store',
|
||||||
FEEDS: '/feeds',
|
FEEDS: '/feeds',
|
||||||
|
@ -63,6 +63,16 @@ const AuthenticatedAppRouter: FunctionComponent = () => {
|
|||||||
component={TeamsAndUsersPage}
|
component={TeamsAndUsersPage}
|
||||||
path={ROUTES.TEAMS_AND_USERS}
|
path={ROUTES.TEAMS_AND_USERS}
|
||||||
/>
|
/>
|
||||||
|
<AdminProtectedRoute
|
||||||
|
exact
|
||||||
|
component={TeamsAndUsersPage}
|
||||||
|
path={ROUTES.TEAMS_AND_USERS_USERS}
|
||||||
|
/>
|
||||||
|
<AdminProtectedRoute
|
||||||
|
exact
|
||||||
|
component={TeamsAndUsersPage}
|
||||||
|
path={ROUTES.TEAMS_AND_USERS_ADMINS}
|
||||||
|
/>
|
||||||
<Route
|
<Route
|
||||||
exact
|
exact
|
||||||
component={TeamsAndUsersPage}
|
component={TeamsAndUsersPage}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user