diff options
Diffstat (limited to 'modules/auth/auth.go')
-rw-r--r-- | modules/auth/auth.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/auth/auth.go b/modules/auth/auth.go index c9e5c44da5..5f6ff75dd8 100644 --- a/modules/auth/auth.go +++ b/modules/auth/auth.go @@ -214,9 +214,10 @@ func SignedInUser(ctx *macaron.Context, sess session.Store) (*models.User, bool) } return nil, false } + } else { + ctx.Data["IsApiToken"] = true } - ctx.Data["IsApiToken"] = true return u, true } } |