Skip to content

Fix org team assignee/reviewer lookups for team member permissions (#37365)#37391

Merged
silverwind merged 1 commit intogo-gitea:release/v1.26from
GiteaBot:backport-37365-v1.26
Apr 23, 2026
Merged

Fix org team assignee/reviewer lookups for team member permissions (#37365)#37391
silverwind merged 1 commit intogo-gitea:release/v1.26from
GiteaBot:backport-37365-v1.26

Conversation

@GiteaBot
Copy link
Copy Markdown
Collaborator

Backport #37365 by @pisarz77

Fix team members missing from assignee list when team_unit.access_mode is 0 but the doer is owner.

Fix #34871

  1. Use GetTeamUserIDsWithAccessToAnyRepoUnit for repo assignee list
  2. Load assignee list for project issues directly
  3. Use GetTeamUserIDsWithAccessToAnyRepoUnit for repo reviewer list

…o-gitea#37365)

Fix team members missing from assignee list when `team_unit.access_mode`
is 0 but the doer is owner.

Fix  go-gitea#34871

1. Use `GetTeamUserIDsWithAccessToAnyRepoUnit` for repo assignee list
2. Load assignee list for project issues directly
3. Use `GetTeamUserIDsWithAccessToAnyRepoUnit` for repo reviewer list

Signed-off-by: Jakub Pisarczyk <pisarz77@gmail.com>
Signed-off-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Claude (Opus 4.7) <noreply@anthropic.com>
Co-authored-by: Giteabot <teabot@gitea.io>
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Apr 23, 2026
@GiteaBot GiteaBot added this to the 1.26.1 milestone Apr 23, 2026
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Apr 23, 2026
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Apr 23, 2026
@silverwind silverwind merged commit 55a6cfe into go-gitea:release/v1.26 Apr 23, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants