mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-24 19:42:04 +01:00
fe35a17dbe
- On editting a team, only update the units if the team isn't the
'Owners' team. Otherwise the 'Owners' team end up having all of their
unit access modes set to 'None'; because the request form doesn't send
over any units, as it's simply not shown in the UI.
- Adds a database inconstency check and fix for the case where the
'Owners' team is affected by this bug.
- Adds unit test.
- Adds integration test.
- Resolves #5528
- Regression of https://github.com/go-gitea/gitea/pull/24012
(cherry picked from commit
|
||
---|---|---|
.. | ||
TestInconsistentOwnerTeam | ||
main_test.go | ||
mini_org.go | ||
org.go | ||
org_repo.go | ||
org_test.go | ||
org_user.go | ||
org_user_test.go | ||
team.go | ||
team_invite.go | ||
team_invite_test.go | ||
team_list.go | ||
team_repo.go | ||
team_test.go | ||
team_unit.go | ||
team_user.go |