mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Fix #264
This commit is contained in:
		@@ -308,3 +308,13 @@ func RequireTrueOwner() macaron.Handler {
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// GitHookService checks if repsitory Git hooks service has been enabled.
 | 
			
		||||
func GitHookService() macaron.Handler {
 | 
			
		||||
	return func(ctx *Context) {
 | 
			
		||||
		if !setting.Service.EnableGitHooks {
 | 
			
		||||
			ctx.Handle(404, "GitHookService", nil)
 | 
			
		||||
			return
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user