mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-23 00:18:06 +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',
|
||||
TEAMS_AND_USERS: '/teams-and-users',
|
||||
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',
|
||||
STORE: '/store',
|
||||
FEEDS: '/feeds',
|
||||
|
@ -63,6 +63,16 @@ const AuthenticatedAppRouter: FunctionComponent = () => {
|
||||
component={TeamsAndUsersPage}
|
||||
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
|
||||
exact
|
||||
component={TeamsAndUsersPage}
|
||||
|
Loading…
x
Reference in New Issue
Block a user