forgejo/models/organization
Gusted 9de9034400
[BUG] Don't allow owner team with incorrect unit access
- 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
2024-10-11 14:48:47 +02:00
..
TestInconsistentOwnerTeam [BUG] Don't allow owner team with incorrect unit access 2024-10-11 14:48:47 +02:00
main_test.go
mini_org.go
org.go Check the token's owner and repository when registering a runner (#30406) 2024-04-16 09:38:26 +02:00
org_repo.go
org_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
org_user.go Even more db.DefaultContext refactor (#27352) 2023-10-03 10:30:41 +00:00
org_user_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
team.go [BUG] Don't allow owner team with incorrect unit access 2024-10-11 14:48:47 +02:00
team_invite.go
team_invite_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
team_list.go
team_repo.go
team_test.go [BUG] Don't allow owner team with incorrect unit access 2024-10-11 14:48:47 +02:00
team_unit.go Even more db.DefaultContext refactor (#27352) 2023-10-03 10:30:41 +00:00
team_user.go Even more db.DefaultContext refactor (#27352) 2023-10-03 10:30:41 +00:00