aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api/v1/api.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api/v1/api.go')
-rw-r--r--routers/api/v1/api.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go
index 967db3b01c..23a85759c2 100644
--- a/routers/api/v1/api.go
+++ b/routers/api/v1/api.go
@@ -175,7 +175,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
}