[PR #5307] [MERGED] Fix bug when users have serval teams with different units on different repositories #17750

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

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/5307
Author: @lunny
Created: 11/9/2018
Status: Merged
Merged: 11/9/2018
Merged by: @lafriks

Base: masterHead: lunny/fix_team_unit


📝 Commits (1)

  • 0787463 fix bug when users have serval teams with different units on different repositories

📊 Changes

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

View changed files

📝 models/org_team.go (+10 -0)
📝 models/repo.go (+1 -1)

📄 Description

When a user are on two teams on the same organization and get units will get non-current repository teams and units. This pull request will add a filter so that a repository get units only the repository's teams, not all the teams of the user.


🔄 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/5307 **Author:** [@lunny](https://github.com/lunny) **Created:** 11/9/2018 **Status:** ✅ Merged **Merged:** 11/9/2018 **Merged by:** [@lafriks](https://github.com/lafriks) **Base:** `master` ← **Head:** `lunny/fix_team_unit` --- ### 📝 Commits (1) - [`0787463`](https://github.com/go-gitea/gitea/commit/07874631daac70a3a0951011ecb5f3a719ca445f) fix bug when users have serval teams with different units on different repositories ### 📊 Changes **2 files changed** (+11 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `models/org_team.go` (+10 -0) 📝 `models/repo.go` (+1 -1) </details> ### 📄 Description When a user are on two teams on the same organization and get units will get non-current repository teams and units. This pull request will add a filter so that a repository get units only the repository's teams, not all the teams of the user. --- <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:30:30 -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#17750