mirror of
https://github.com/go-gitea/gitea.git
synced 2025-09-09 19:58:15 +00:00
#12, add/edit hook
This commit is contained in:
@@ -67,3 +67,12 @@ func Toggle(options *ToggleOptions) macaron.Handler {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func ApiReqToken() macaron.Handler {
|
||||
return func(ctx *Context) {
|
||||
if !ctx.IsSigned {
|
||||
ctx.Error(403)
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user