[PR #7359] [MERGED] fix(organization): infer endpoints when dynamic ac and teams enabled #15502

Closed
opened 2026-04-13 10:03:52 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

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

Base: canaryHead: 01-14-2026/fix-dynamic-roles-and-teams-inference


📝 Commits (2)

  • e227507 fix: infer endpoints when dynamic ac and teams enabled
  • a224bbe chore: fix linting

📊 Changes

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

View changed files

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

📄 Description

closes #7356


Summary by cubic

Fixes endpoint inference in the organization plugin when dynamicAccessControl and teams are used together, so endpoints are generated correctly for both configurations. Addresses issue #7356.

  • Bug Fixes
    • Added type overloads to accept teams.enabled with optional dynamicAccessControl, and dynamicAccessControl.enabled with optional teams.
    • Prevents missing or mis-inferred endpoints when both features are toggled.

Written for commit a224bbeea3. 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/7359 **Author:** [@jslno](https://github.com/jslno) **Created:** 1/14/2026 **Status:** ✅ Merged **Merged:** 1/14/2026 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `01-14-2026/fix-dynamic-roles-and-teams-inference` --- ### 📝 Commits (2) - [`e227507`](https://github.com/better-auth/better-auth/commit/e2275070a526b0becc75fe96177b7d4bd976ce76) fix: infer endpoints when dynamic ac and teams enabled - [`a224bbe`](https://github.com/better-auth/better-auth/commit/a224bbeea3d0a302828ff0a8783591d9342686b5) chore: fix linting ### 📊 Changes **1 file changed** (+6 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/organization/organization.ts` (+6 -0) </details> ### 📄 Description closes #7356 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Fixes endpoint inference in the organization plugin when dynamicAccessControl and teams are used together, so endpoints are generated correctly for both configurations. Addresses issue #7356. - **Bug Fixes** - Added type overloads to accept teams.enabled with optional dynamicAccessControl, and dynamicAccessControl.enabled with optional teams. - Prevents missing or mis-inferred endpoints when both features are toggled. <sup>Written for commit a224bbeea3d0a302828ff0a8783591d9342686b5. 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-04-13 10:03:52 -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#15502