mirror of
https://gitee.com/gitea/gitea
synced 2025-11-20 00:10:28 +08:00
fox #620
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user