1
0
Fork 0
forked from forgejo/forgejo
This commit is contained in:
Unknown 2014-03-11 11:54:43 -04:00
parent 12f81de349
commit af5435d586
2 changed files with 5 additions and 2 deletions

View file

@ -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