fix: prevent cross-team app visibility in organizations (#23085)
This commit is contained in:
@@ -72,6 +72,7 @@ export async function getConnectedApps({
|
||||
if (includeTeamInstalledApps || teamId) {
|
||||
const teamsQuery = await prisma.team.findMany({
|
||||
where: {
|
||||
...(teamId ? { id: teamId } : {}),
|
||||
members: {
|
||||
some: {
|
||||
userId: user.id,
|
||||
|
||||
Reference in New Issue
Block a user