[PR #5494] [MERGED] add tests for api user orgs #17809

Closed
opened 2025-11-02 15:57:54 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/5494
Author: @lunny
Created: 12/8/2018
Status: Merged
Merged: 12/9/2018
Merged by: @lunny

Base: masterHead: lunny/api_add_test_orgs


📝 Commits (3)

  • 8463b3c add tests for api user orgs
  • c6b73a2 add permission for admin to list user's orgs even he is a private user of org
  • 2837235 Merge branch 'master' into lunny/api_add_test_orgs

📊 Changes

2 files changed (+64 additions, -1 deletions)

View changed files

integrations/api_user_orgs_test.go (+63 -0)
📝 routers/api/v1/org/org.go (+1 -1)

📄 Description

Add tests for confirm #5485 and also allow site admin list user's orgs via API even if he is hidden himself on that org.


🔄 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/5494 **Author:** [@lunny](https://github.com/lunny) **Created:** 12/8/2018 **Status:** ✅ Merged **Merged:** 12/9/2018 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `lunny/api_add_test_orgs` --- ### 📝 Commits (3) - [`8463b3c`](https://github.com/go-gitea/gitea/commit/8463b3c54565d5b704fb7fb42c3419c04895d263) add tests for api user orgs - [`c6b73a2`](https://github.com/go-gitea/gitea/commit/c6b73a22e3f572feff9f6d77ba27259c8a088271) add permission for admin to list user's orgs even he is a private user of org - [`2837235`](https://github.com/go-gitea/gitea/commit/2837235ee783f96597c85372331d2054c21a1a6c) Merge branch 'master' into lunny/api_add_test_orgs ### 📊 Changes **2 files changed** (+64 additions, -1 deletions) <details> <summary>View changed files</summary> ➕ `integrations/api_user_orgs_test.go` (+63 -0) 📝 `routers/api/v1/org/org.go` (+1 -1) </details> ### 📄 Description Add tests for confirm #5485 and also allow site admin list user's orgs via API even if he is hidden himself on that org. --- <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 15:57:56 -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#17809