[PR #1166] [MERGED] feat: Add Membership Validation to getFullOrganization Endpoint closes #1165 #29263

Closed
opened 2026-04-17 20:38:09 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/1166
Author: @msywulak
Created: 1/9/2025
Status: Merged
Merged: 1/10/2025
Merged by: @Bekacru

Base: mainHead: feature/org-auth-check


📝 Commits (2)

  • bde4d48 feat: validate org membership using ID or slug
  • f85217c fix: remove setActiveOrg from original feature

📊 Changes

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

View changed files

📝 packages/better-auth/src/plugins/organization/routes/crud-org.ts (+9 -0)

📄 Description

This PR adds membership validation to the getFullOrganization endpoint by checking if the requesting user is a member of the specified organization. This change enhances security by ensuring that only authorized users can access the organization's details.

Reused isMember check from setActiveOrganization

closes #1165


🔄 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/1166 **Author:** [@msywulak](https://github.com/msywulak) **Created:** 1/9/2025 **Status:** ✅ Merged **Merged:** 1/10/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `feature/org-auth-check` --- ### 📝 Commits (2) - [`bde4d48`](https://github.com/better-auth/better-auth/commit/bde4d48e098b6a0873974e91cedbb3883b612202) feat: validate org membership using ID or slug - [`f85217c`](https://github.com/better-auth/better-auth/commit/f85217cdafdc72975cb35c4f76ad88187554be69) fix: remove setActiveOrg from original feature ### 📊 Changes **1 file changed** (+9 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/organization/routes/crud-org.ts` (+9 -0) </details> ### 📄 Description This PR adds membership validation to the `getFullOrganization` endpoint by checking if the requesting user is a member of the specified organization. This change enhances security by ensuring that only authorized users can access the organization's details. Reused isMember check from `setActiveOrganization` closes #1165 --- <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-04-17 20:38:09 -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#29263