[PR #1905] [MERGED] Require token before checking membership/ownership #16113

Closed
opened 2025-11-02 12:02:36 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/1905
Author: @ethantkoenig
Created: 6/7/2017
Status: Merged
Merged: 6/7/2017
Merged by: @andreynering

Base: masterHead: fix/org_api_auth


📝 Commits (1)

  • 971e3a3 Require token before checking membership/ownership

📊 Changes

1 file changed (+7 additions, -7 deletions)

View changed files

📝 routers/api/v1/api.go (+7 -7)

📄 Description

Call the reqToken() handler before calling the reqOrgMembership() or reqOrgOwnership() handlers. Failing to do so results in a 500 for unauthenticated users (see error from #1899)


🔄 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/go-gitea/gitea/pull/1905 **Author:** [@ethantkoenig](https://github.com/ethantkoenig) **Created:** 6/7/2017 **Status:** ✅ Merged **Merged:** 6/7/2017 **Merged by:** [@andreynering](https://github.com/andreynering) **Base:** `master` ← **Head:** `fix/org_api_auth` --- ### 📝 Commits (1) - [`971e3a3`](https://github.com/go-gitea/gitea/commit/971e3a35c12da4c31060ad4a652901f9953dcf63) Require token before checking membership/ownership ### 📊 Changes **1 file changed** (+7 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `routers/api/v1/api.go` (+7 -7) </details> ### 📄 Description Call the `reqToken()` handler before calling the `reqOrgMembership()` or `reqOrgOwnership()` handlers. Failing to do so results in a 500 for unauthenticated users (see error from #1899) --- <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 2025-11-02 12:02:36 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#16113