aboutsummaryrefslogtreecommitdiff
path: root/routes/api/v1/api.go
diff options
context:
space:
mode:
Diffstat (limited to 'routes/api/v1/api.go')
-rw-r--r--routes/api/v1/api.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/api/v1/api.go b/routes/api/v1/api.go
index ca29ee86..f236d9aa 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 !c.IsTokenAuth {
c.Error(401)
return
}