mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-03 21:08:25 +00:00 
			
		
		
		
	Fix owner team access mode value in team_unit table (#23675)
All `access_mode` value of Owner Teams are 0(AccessModeNone) in `team_unit` table, which should be 4(AccessModeOwner) In `team` table:  In `team_unit` table:  ps: In https://github.com/go-gitea/gitea/pull/23630, `access_mode` in `team_unit` is used to check the team unit permission, but I found that user can not see issues in owned org repos.
This commit is contained in:
		@@ -479,6 +479,8 @@ var migrations = []Migration{
 | 
			
		||||
	NewMigration("Improve Action table indices v3", v1_20.ImproveActionTableIndices),
 | 
			
		||||
	// v250 -> v251
 | 
			
		||||
	NewMigration("Change Container Metadata", v1_20.ChangeContainerMetadataMultiArch),
 | 
			
		||||
	// v251 -> v252
 | 
			
		||||
	NewMigration("Fix incorrect owner team unit access mode", v1_20.FixIncorrectOwnerTeamUnitAccessMode),
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// GetCurrentDBVersion returns the current db version
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user