mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	fix enabling repo packages when projects are off (#20486)
This commit is contained in:
		| @@ -476,7 +476,7 @@ func SettingsPost(ctx *context.Context) { | ||||
| 			deleteUnitTypes = append(deleteUnitTypes, unit_model.TypeProjects) | ||||
| 		} | ||||
|  | ||||
| 		if form.EnablePackages && !unit_model.TypeProjects.UnitGlobalDisabled() { | ||||
| 		if form.EnablePackages && !unit_model.TypePackages.UnitGlobalDisabled() { | ||||
| 			units = append(units, repo_model.RepoUnit{ | ||||
| 				RepoID: repo.ID, | ||||
| 				Type:   unit_model.TypePackages, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user