diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-11 11:54:43 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-11 11:54:43 -0400 |
commit | af5435d58640144cdf29b955ecf96b8792bf6484 (patch) | |
tree | 2abcc56f7a98ef34a4d7037f99da0109d82c54c6 /modules/auth | |
parent | 12f81de349b9793c6f8f14b11af32ee94a735d5f (diff) | |
download | gitea-af5435d58640144cdf29b955ecf96b8792bf6484.tar.gz gitea-af5435d58640144cdf29b955ecf96b8792bf6484.zip |
Bug fix
Diffstat (limited to 'modules/auth')
-rw-r--r-- | modules/auth/user.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/auth/user.go b/modules/auth/user.go index 215cffedb0..4059edfdd3 100644 --- a/modules/auth/user.go +++ b/modules/auth/user.go @@ -20,6 +20,9 @@ func SignedInId(session sessions.Session) int64 { return 0 } if s, ok := userId.(int64); ok { + if _, err := models.GetUserById(s); err != nil { + return 0 + } return s } return 0 |