mirror of
https://github.com/go-gitea/gitea.git
synced 2025-12-16 18:59:17 +00:00
@@ -132,7 +132,7 @@ func repoAssignment() macaron.Handler {
|
||||
// Contexter middleware already checks token for user sign in process.
|
||||
func reqToken() macaron.Handler {
|
||||
return func(ctx *context.Context) {
|
||||
if !ctx.IsSigned {
|
||||
if true != ctx.Data["IsApiToken"] {
|
||||
ctx.Error(401)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user