Skip to content

Commit d9817fc

Browse files
authored
fix: prevent cross-team app visibility in organizations (calcom#23085)
1 parent a784af3 commit d9817fc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/lib/getConnectedApps.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ export async function getConnectedApps({
7272
if (includeTeamInstalledApps || teamId) {
7373
const teamsQuery = await prisma.team.findMany({
7474
where: {
75+
...(teamId ? { id: teamId } : {}),
7576
members: {
7677
some: {
7778
userId: user.id,

0 commit comments

Comments
 (0)