mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	EnableUnit() -> UnitEnabled() (#2242)
This commit is contained in:
		@@ -235,7 +235,7 @@ func orgAssignment(args ...bool) macaron.Handler {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func mustEnableIssues(ctx *context.APIContext) {
 | 
			
		||||
	if !ctx.Repo.Repository.EnableUnit(models.UnitTypeIssues) {
 | 
			
		||||
	if !ctx.Repo.Repository.UnitEnabled(models.UnitTypeIssues) {
 | 
			
		||||
		ctx.Status(404)
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user