[PR #3511] [CLOSED] fix(teams): listTeams should prioritize the provided org ID #4864

Closed
opened 2026-03-13 12:02:26 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3511
Author: @ping-maxwell
Created: 7/21/2025
Status: Closed

Base: mainHead: fix/org/list-team-use-provided-orgid


📝 Commits (1)

  • 6e9bf3b fix(teams): listTeams should prioritize the provided org ID

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 packages/better-auth/src/plugins/organization/routes/crud-team.ts (+1 -1)

📄 Description

Use the provided org id in the params, then if not provided, fallback to session active org id


Summary by cubic

Updated listTeams to use the organization ID from the request if provided, falling back to the session's active organization ID only if needed.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/3511 **Author:** [@ping-maxwell](https://github.com/ping-maxwell) **Created:** 7/21/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/org/list-team-use-provided-orgid` --- ### 📝 Commits (1) - [`6e9bf3b`](https://github.com/better-auth/better-auth/commit/6e9bf3befa487d7bbddc371c5cb90b018daac7f2) fix(teams): listTeams should prioritize the provided org ID ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/organization/routes/crud-team.ts` (+1 -1) </details> ### 📄 Description Use the provided org id in the params, then if not provided, fallback to session active org id <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Updated listTeams to use the organization ID from the request if provided, falling back to the session's active organization ID only if needed. <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-13 12:02:26 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#4864