diff options
Diffstat (limited to 'packages/trpc/models/lists.ts')
| -rw-r--r-- | packages/trpc/models/lists.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/trpc/models/lists.ts b/packages/trpc/models/lists.ts index a0d9ca23..0968492a 100644 --- a/packages/trpc/models/lists.ts +++ b/packages/trpc/models/lists.ts @@ -752,7 +752,8 @@ export abstract class List { user: { id: c.user.id, name: c.user.name, - email: c.user.email, + // Only show email to the owner for privacy + email: isOwner ? c.user.email : null, }, }; }); @@ -763,7 +764,8 @@ export abstract class List { ? { id: owner.id, name: owner.name, - email: owner.email, + // Only show owner email to the owner for privacy + email: isOwner ? owner.email : null, } : null, }; |
