mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-01 09:51:39 -05: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 9de9034400
)
59 lines
577 B
YAML
59 lines
577 B
YAML
-
|
|
id: 1000
|
|
team_id: 1000
|
|
type: 1
|
|
access_mode: 0 # None
|
|
|
|
-
|
|
id: 1001
|
|
team_id: 1000
|
|
type: 2
|
|
access_mode: 0
|
|
|
|
-
|
|
id: 1002
|
|
team_id: 1000
|
|
type: 3
|
|
access_mode: 0
|
|
|
|
-
|
|
id: 1003
|
|
team_id: 1000
|
|
type: 4
|
|
access_mode: 0
|
|
|
|
-
|
|
id: 1004
|
|
team_id: 1000
|
|
type: 5
|
|
access_mode: 0
|
|
|
|
-
|
|
id: 1005
|
|
team_id: 1000
|
|
type: 6
|
|
access_mode: 0
|
|
|
|
-
|
|
id: 1006
|
|
team_id: 1000
|
|
type: 7
|
|
access_mode: 0
|
|
|
|
-
|
|
id: 1007
|
|
team_id: 1000
|
|
type: 8
|
|
access_mode: 0
|
|
|
|
-
|
|
id: 1008
|
|
team_id: 1000
|
|
type: 9
|
|
access_mode: 0
|
|
|
|
-
|
|
id: 1009
|
|
team_id: 1000
|
|
type: 10
|
|
access_mode: 0
|