[PR #3531] [MERGED] fix(organization): list organization teams #4868

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3531
Author: @Bekacru
Created: 7/21/2025
Status: Merged
Merged: 7/23/2025
Merged by: @Bekacru

Base: mainHead: fix/teams


📝 Commits (10+)

📊 Changes

2 files changed (+18 additions, -49 deletions)

View changed files

📝 packages/better-auth/src/plugins/organization/error-codes.ts (+2 -0)
📝 packages/better-auth/src/plugins/organization/routes/crud-team.ts (+16 -49)

📄 Description

Summary by cubic

Fixed organization team listing to correctly handle organization ID and session checks, and improved error handling for missing or unauthorized access.


🔄 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/3531 **Author:** [@Bekacru](https://github.com/Bekacru) **Created:** 7/21/2025 **Status:** ✅ Merged **Merged:** 7/23/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `fix/teams` --- ### 📝 Commits (10+) - [`314bf8b`](https://github.com/better-auth/better-auth/commit/314bf8b285d6e313f2191efe811c4dcd84a0e4e7) fix: list organization teams - [`e4f671e`](https://github.com/better-auth/better-auth/commit/e4f671e8135f0ef98efcd227e99c733edda99b46) Update packages/better-auth/src/plugins/organization/routes/crud-team.ts - [`f7374c9`](https://github.com/better-auth/better-auth/commit/f7374c966ea0335a97be0770e51987129cfb4826) add request check - [`658a7e8`](https://github.com/better-auth/better-auth/commit/658a7e86d89381fc3b14993ba53dba247ac53c0f) fix list team members - [`5d6af49`](https://github.com/better-auth/better-auth/commit/5d6af49098d795a7c1d5a61ab6c1d86d205fce1a) add desc - [`60530a3`](https://github.com/better-auth/better-auth/commit/60530a37f2da74b00b38e704c4931df9294c892c) fix: fetch session - [`cbf5771`](https://github.com/better-auth/better-auth/commit/cbf577141152c65415b9bd6a3fc71d96c024a76b) update - [`fe85971`](https://github.com/better-auth/better-auth/commit/fe85971024887b172f0343883420a01b4258fda3) only allow fetching using userid when request doesn't exist - [`82df33a`](https://github.com/better-auth/better-auth/commit/82df33aa60e8959d693588905d2f8957a4520e8d) requrie session - [`04e007d`](https://github.com/better-auth/better-auth/commit/04e007dc715671760f2794dfc6699c965d65c324) remove org id ### 📊 Changes **2 files changed** (+18 additions, -49 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/organization/error-codes.ts` (+2 -0) 📝 `packages/better-auth/src/plugins/organization/routes/crud-team.ts` (+16 -49) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Fixed organization team listing to correctly handle organization ID and session checks, and improved error handling for missing or unauthorized access. <!-- 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:33 -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#4868