mirror of
https://github.com/go-gitea/gitea.git
synced 2026-12-04 05:42:25 -06:00
Deleting a team that includes all repositories kept its `team_repo` and `access` rows, so former members kept their access to the team's repositories. `DeleteTeam` relied on `RemoveAllRepositoriesFromTeam`, which skipped such teams. `RemoveAllRepositoriesFromTeam` now always removes the team's repositories, and the "remove all" action uses the new `RemoveSpecifiedRepositoriesFromTeam`, which keeps the guard. Regression of https://github.com/go-gitea/gitea/pull/19158 Assisted-by: Claude Code:claude-opus-5-5 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>