This commit is contained in:
Unknwon committed 2014-11-17 14:53:41 -05:00
1 parent d1a60e3643
commit 32dcaefafa
16 files changed
+100 -21

No files matched your search

+1 -1
View File
@@ -454,7 +454,7 @@ 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 {
if !ctx.User.AllowGitHook && !ctx.User.IsAdmin {
ctx.Handle(404, "GitHookService", nil)
return
}