mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Fix owners cannot create organization repos bug (#20841)
* Fix owners cannot create organization repos bug * Fix api * Update routers/api/v1/org/team.go Co-authored-by: Gusted <williamzijl7@hotmail.com> Co-authored-by: Gusted <williamzijl7@hotmail.com>
This commit is contained in:
		@@ -262,7 +262,7 @@ func EditTeam(ctx *context.APIContext) {
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if form.CanCreateOrgRepo != nil {
 | 
			
		||||
		team.CanCreateOrgRepo = *form.CanCreateOrgRepo
 | 
			
		||||
		team.CanCreateOrgRepo = team.IsOwnerTeam() || *form.CanCreateOrgRepo
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if len(form.Name) > 0 {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user