diff --git a/routes/api/v1/api.go b/routes/api/v1/api.go index ca29ee863..48497c6c9 100644 --- a/routes/api/v1/api.go +++ b/routes/api/v1/api.go @@ -86,7 +86,7 @@ func repoAssignment() macaron.Handler { // Contexter middleware already checks token for user sign in process. func reqToken() macaron.Handler { return func(c *context.Context) { - if !c.IsLogged { + if true != c.Data["IsApiToken"] { c.Error(401) return }