[PR #7366] [MERGED] fix(organization): incorrect status #7262

Closed
opened 2026-03-13 13:30:01 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7366
Author: @himself65
Created: 1/14/2026
Status: Merged
Merged: 1/14/2026
Merged by: @himself65

Base: canaryHead: himself65/2026/01/14/regression


📝 Commits (1)

  • 40b426b fix(organization): incorrect status

📊 Changes

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

View changed files

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

📄 Description

Regression from: 7d8786cd87 (diff-6b35b5a9ecf1a18a045c3d1931abd54a11b6301c210b53df02c2c8b8680e0ba6L236-R240)


Summary by cubic

Fixes incorrect API status when checking organization membership. Non-members now return UNAUTHORIZED instead of FORBIDDEN, restoring expected behavior and avoiding misclassified permission errors.

Written for commit 40b426b658. Summary will update on new commits.


🔄 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/7366 **Author:** [@himself65](https://github.com/himself65) **Created:** 1/14/2026 **Status:** ✅ Merged **Merged:** 1/14/2026 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `himself65/2026/01/14/regression` --- ### 📝 Commits (1) - [`40b426b`](https://github.com/better-auth/better-auth/commit/40b426b65878f56cd2567871c80495be470bc2ca) fix(organization): incorrect status ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/organization/organization.ts` (+1 -1) </details> ### 📄 Description Regression from: https://github.com/better-auth/better-auth/commit/7d8786cd879023f87839095ece5cd69a82196c16#diff-6b35b5a9ecf1a18a045c3d1931abd54a11b6301c210b53df02c2c8b8680e0ba6L236-R240 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Fixes incorrect API status when checking organization membership. Non-members now return UNAUTHORIZED instead of FORBIDDEN, restoring expected behavior and avoiding misclassified permission errors. <sup>Written for commit 40b426b65878f56cd2567871c80495be470bc2ca. Summary will update on new commits.</sup> <!-- 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 13:30:01 -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#7262