Skip to content

Commit

Permalink
Fix user access location in settings icon (#2958)
Browse files Browse the repository at this point in the history
Co-authored-by: Filip Hlavac <[email protected]>
  • Loading branch information
karelhala and fhlavac authored Oct 23, 2024
1 parent 672651d commit 5a24dd1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/Header/Tools.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,9 @@ const Tools = () => {
const unreadNotifications = useAtomValue(unreadNotificationsAtom);
const [isNotificationDrawerExpanded, toggleNotifications] = useAtom(notificationDrawerExpandedAtom);
const intl = useIntl();
const isOrgAdmin = user?.identity?.user?.is_org_admin;
const settingsPath = isITLessEnv ? `/settings/my-user-access` : enableIntegrations ? `/settings/integrations` : '/settings/sources';
const identityAndAccessManagmentPath = '/iam/user-access/overview';
const identityAndAccessManagmentPath = isOrgAdmin ? '/iam/user-access/overview' : '/iam/my-user-access';
const betaSwitcherTitle = `${isPreview ? intl.formatMessage(messages.stopUsing) : intl.formatMessage(messages.use)} ${intl.formatMessage(
messages.betaRelease
)}`;
Expand Down Expand Up @@ -113,7 +114,7 @@ const Tools = () => {
items: [
{
url: identityAndAccessManagmentPath,
title: 'User Access',
title: isOrgAdmin ? 'User Access' : 'My User Access',
},
{
url: '/iam/authentication-policy/authentication-factors',
Expand Down

0 comments on commit 5a24dd1

Please sign in to comment.