fix: hide orgnizer email in cal video sidebar (#21011)
This commit is contained in:
@@ -225,8 +225,12 @@ export function VideoMeetingInfo(props: VideoMeetingInfo) {
|
||||
|
||||
<h3>{t("who")}:</h3>
|
||||
<p>
|
||||
{booking?.user?.name} - {t("organizer")}:{" "}
|
||||
<a href={`mailto:${booking?.user?.email}`}>{booking?.user?.email}</a>
|
||||
{booking?.user?.name} - {t("organizer")}
|
||||
{!booking?.eventType?.hideOrganizerEmail && (
|
||||
<>
|
||||
: <a href={`mailto:${booking?.user?.email}`}>{booking?.user?.email}</a>
|
||||
</>
|
||||
)}
|
||||
</p>
|
||||
|
||||
{booking.attendees.length
|
||||
|
||||
@@ -371,6 +371,11 @@ export class BookingRepository {
|
||||
uid: true,
|
||||
description: true,
|
||||
isRecorded: true,
|
||||
eventType: {
|
||||
select: {
|
||||
hideOrganizerEmail: true,
|
||||
},
|
||||
},
|
||||
user: {
|
||||
select: {
|
||||
id: true,
|
||||
|
||||
Reference in New Issue
Block a user