forked from forgejo/forgejo
Fix #264
This commit is contained in:
parent
91e5c24a31
commit
64c68220d2
18 changed files with 317 additions and 19 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue