From 2d18034c1fcb3d83e8dbf59c568e94ae488f7de9 Mon Sep 17 00:00:00 2001 From: B-OnTheGo <42626718+beeonthego@users.noreply.github.com> Date: Mon, 3 Sep 2018 20:46:18 +1000 Subject: [PATCH] reqToken should ask for token i/o logged in status --- routes/api/v1/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }