Skip to content

Commit 0629027

Browse files
committed
ack PR comments
1 parent d66abb6 commit 0629027

File tree

1 file changed

+4
-0
lines changed
  • apps/sim/app/api/v1/admin/organizations/[id]/members

1 file changed

+4
-0
lines changed

apps/sim/app/api/v1/admin/organizations/[id]/members/route.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,10 @@ export const POST = withAdminAuthParams<RouteParams>(async (request, context) =>
207207
},
208208
})
209209
}
210+
211+
return badRequestResponse(
212+
`User is already a member of another organization. Users can only belong to one organization at a time.`
213+
)
210214
}
211215

212216
const result = await addUserToOrganization({

0 commit comments

Comments
 (0)