Skip to content

Commit 64f811e

Browse files
hariombalharadevin-ai-integration[bot]anikdhabal
authored
feat: show organization username in impersonation banner (calcom#24313)
- Update ImpersonatingBanner to use orgAwareUsername field from session - Falls back to regular username for non-organization users - Uses existing session data without additional queries Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Anik Dhabal Babu <81948346+anikdhabal@users.noreply.github.com>
1 parent 4d51873 commit 64f811e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/features/ee/impersonation/components/ImpersonatingBanner.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function ImpersonatingBanner({ data }: ImpersonatingBannerProps) {
1717
return (
1818
<>
1919
<TopBanner
20-
text={t("impersonating_user_warning", { user: data.user.username })}
20+
text={t("impersonating_user_warning", { user: data.user.orgAwareUsername || data.user.username })}
2121
variant="warning"
2222
actions={
2323
canReturnToSelf ? (

0 commit comments

Comments
 (0)