mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-02 21:53:30 +00:00
This commit is contained in:
parent
ace12501b4
commit
b29911a373
@ -116,7 +116,6 @@ const MyAssetStats: FunctionComponent<Props> = ({
|
||||
count: countTeams,
|
||||
link: getTeamAndUserDetailsPath(),
|
||||
dataTestId: 'terms',
|
||||
adminOnly: true,
|
||||
},
|
||||
};
|
||||
};
|
||||
|
@ -435,9 +435,8 @@ export const navLinkSettings = [
|
||||
name: 'Teams & Users',
|
||||
to: ROUTES.TEAMS_AND_USERS,
|
||||
disabled: false,
|
||||
isAdminOnly: true,
|
||||
},
|
||||
{ name: 'Webhooks', to: '/webhooks', disabled: false },
|
||||
{ name: 'Webhooks', to: '/webhooks', disabled: false, isAdminOnly: true },
|
||||
];
|
||||
|
||||
export const TITLE_FOR_NON_OWNER_ACTION =
|
||||
|
@ -20,7 +20,7 @@ export const STEPS_FOR_ADD_INGESTION: Array<StepperStepType> = [
|
||||
{ name: 'Schedule Interval', step: 3 },
|
||||
];
|
||||
|
||||
export const INGESTION_SCHEDULER_INITIAL_VALUE = '5 * * * *';
|
||||
export const INGESTION_SCHEDULER_INITIAL_VALUE = '0 * * * *';
|
||||
|
||||
export const INITIAL_FILTER_PATTERN: FilterPattern = {
|
||||
includes: [],
|
||||
|
@ -684,7 +684,10 @@ const TeamsAndUsersPage = () => {
|
||||
useEffect(() => {
|
||||
if (!isDataLoading) {
|
||||
if (teamAndUser) {
|
||||
if (Object.values(UserType).includes(teamAndUser as UserType)) {
|
||||
if (
|
||||
Object.values(UserType).includes(teamAndUser as UserType) &&
|
||||
(isAdminUser || isAuthDisabled)
|
||||
) {
|
||||
setIsTeamVisible(false);
|
||||
setactiveUserTab(teamAndUser as UserType);
|
||||
setCurrentTeam({} as Team);
|
||||
|
@ -156,12 +156,12 @@ const AuthenticatedAppRouter: FunctionComponent = () => {
|
||||
<Route exact component={ExplorePage} path={ROUTES.EXPLORE} />
|
||||
<Route component={ExplorePage} path={ROUTES.EXPLORE_WITH_SEARCH} />
|
||||
<Route component={ExplorePage} path={ROUTES.EXPLORE_WITH_TAB} />
|
||||
<AdminProtectedRoute
|
||||
<Route
|
||||
exact
|
||||
component={TeamsAndUsersPage}
|
||||
path={ROUTES.TEAMS_AND_USERS}
|
||||
/>
|
||||
<AdminProtectedRoute
|
||||
<Route
|
||||
exact
|
||||
component={TeamsAndUsersPage}
|
||||
path={ROUTES.TEAMS_AND_USERS_DETAILS}
|
||||
|
@ -65,6 +65,7 @@ export const formatUsersResponse = (hits) => {
|
||||
email: d._source.email,
|
||||
type: d._source.entity_type,
|
||||
id: d._source.user_id,
|
||||
teams: d._source.teams,
|
||||
};
|
||||
});
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user