[PR #3018] [CLOSED] fix: prevent error in userHasPermission when no userId is given #4606

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3018
Author: @Kinfe123
Created: 6/13/2025
Status: Closed

Base: mainHead: fix/role-without-userId-pruning


📝 Commits (1)

  • 8debedb fix: prevent error in userHasPermission when no userId is given

📊 Changes

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

View changed files

📝 packages/better-auth/src/plugins/admin/admin.ts (+5 -3)

📄 Description

No description provided


🔄 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/3018 **Author:** [@Kinfe123](https://github.com/Kinfe123) **Created:** 6/13/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/role-without-userId-pruning` --- ### 📝 Commits (1) - [`8debedb`](https://github.com/better-auth/better-auth/commit/8debedb889296fe1d4247018ae3f174c87919e2d) fix: prevent error in userHasPermission when no userId is given ### 📊 Changes **1 file changed** (+5 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/admin/admin.ts` (+5 -3) </details> ### 📄 Description _No description provided_ --- <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:52:25 -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#4606