mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-21 01:11:38 -05:00
[PR #1770] [CLOSED] Fix supporter key redemption requiring organization context #2700
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fosrl/pangolin/pull/1770
Author: @Copilot
Created: 10/29/2025
Status: ❌ Closed
Base:
main← Head:copilot/fix-supporter-key-redeem📝 Commits (2)
6ca93fbInitial planb61cdb6Add verifyUserIsServerAdmin middleware to supporter key endpoints📊 Changes
1 file changed (+6 additions, -1 deletions)
View changed files
📝
server/routers/external.ts(+6 -1)📄 Description
Supporter key redemption fails when accessed from Server Admin page where no organization is selected, returning "Invalid supporter key" despite valid credentials.
Changes
Added
verifyUserIsServerAdminmiddleware to supporter key endpoints:Supporter keys are server-wide configuration managed from Server Admin, not organization-scoped. This aligns with license activation endpoints which use the same middleware pattern.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.