[PR #1520] [MERGED] fix(organizaiton): restrict admins from removing or updating owners or members with creator roles #3842

Closed
opened 2026-03-13 11:16:57 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/1520
Author: @Bekacru
Created: 2/20/2025
Status: Merged
Merged: 2/20/2025
Merged by: @Bekacru

Base: mainHead: fix/org-member-perm


📝 Commits (2)

  • 42cccb4 fix(access-control): restrict admins from removing or updating owners or members with creator roles
  • 7f76c32 fix(access-control): allow admins to update and delete members

📊 Changes

2 files changed (+89 additions, -26 deletions)

View changed files

📝 packages/better-auth/src/plugins/organization/organization.test.ts (+35 -1)
📝 packages/better-auth/src/plugins/organization/routes/crud-members.ts (+54 -25)

📄 Description

closes #1518


🔄 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/1520 **Author:** [@Bekacru](https://github.com/Bekacru) **Created:** 2/20/2025 **Status:** ✅ Merged **Merged:** 2/20/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `fix/org-member-perm` --- ### 📝 Commits (2) - [`42cccb4`](https://github.com/better-auth/better-auth/commit/42cccb4d6728ff75664a148e08382073c59fae87) fix(access-control): restrict admins from removing or updating owners or members with creator roles - [`7f76c32`](https://github.com/better-auth/better-auth/commit/7f76c32988b5a2cdeaa53e93040528a8eeb4c9b5) fix(access-control): allow admins to update and delete members ### 📊 Changes **2 files changed** (+89 additions, -26 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/organization/organization.test.ts` (+35 -1) 📝 `packages/better-auth/src/plugins/organization/routes/crud-members.ts` (+54 -25) </details> ### 📄 Description closes #1518 --- <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 11:16:57 -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#3842