diff --git a/pkg/auth/auth.go b/pkg/auth/auth.go index 50550f5b3..aba0ee37d 100644 --- a/pkg/auth/auth.go +++ b/pkg/auth/auth.go @@ -135,7 +135,7 @@ func SignedInUser(ctx *macaron.Context, sess session.Store) (*models.User, bool) } return nil, false } - c.Data["IsApiToken"] = true + ctx.Data["IsApiToken"] = true return u, true } }