mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-09 23:12:06 -03:30
* Fix for #31918 Signed-off-by: kaustubh B <kbawanka@redhat.com> * Update js/apps/admin-ui/src/realm-settings/RealmSettingsTabs.tsx Co-authored-by: Stan Silvert <ssilvert@redhat.com> Signed-off-by: kaustubh-rh <88367583+kaustubh-rh@users.noreply.github.com> --------- Signed-off-by: kaustubh B <kbawanka@redhat.com> Signed-off-by: kaustubh-rh <88367583+kaustubh-rh@users.noreply.github.com> Co-authored-by: Stan Silvert <ssilvert@redhat.com> (cherry picked from commit e090b0d26035af69def569410e60dac58ea845f0) Co-authored-by: kaustubh-rh <88367583+kaustubh-rh@users.noreply.github.com>
This commit is contained in:
parent
2a8f104f26
commit
b072f6df07
@ -293,6 +293,9 @@ export const RealmSettingsTabs = () => {
|
||||
const clientPoliciesTab = useTab("client-policies");
|
||||
const userProfileTab = useTab("user-profile");
|
||||
const userRegistrationTab = useTab("user-registration");
|
||||
const { hasAccess, hasSomeAccess } = useAccess();
|
||||
const canViewOrManageEvents =
|
||||
hasAccess("view-realm") && hasSomeAccess("view-events", "manage-events");
|
||||
|
||||
const useClientPoliciesTab = (tab: ClientPoliciesTab) =>
|
||||
useRoutableTab(
|
||||
@ -366,13 +369,15 @@ export const RealmSettingsTabs = () => {
|
||||
>
|
||||
<KeysTab />
|
||||
</Tab>
|
||||
<Tab
|
||||
title={<TabTitleText>{t("events")}</TabTitleText>}
|
||||
data-testid="rs-realm-events-tab"
|
||||
{...eventsTab}
|
||||
>
|
||||
<EventsTab realm={realm!} />
|
||||
</Tab>
|
||||
{canViewOrManageEvents && (
|
||||
<Tab
|
||||
title={<TabTitleText>{t("events")}</TabTitleText>}
|
||||
data-testid="rs-realm-events-tab"
|
||||
{...eventsTab}
|
||||
>
|
||||
<EventsTab realm={realm!} />
|
||||
</Tab>
|
||||
)}
|
||||
<Tab
|
||||
title={<TabTitleText>{t("localization")}</TabTitleText>}
|
||||
data-testid="rs-localization-tab"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user