0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-26 15:52:49 +01:00
This commit is contained in:
Unknown 2014-06-21 00:53:46 -04:00
parent ad5ec45dd6
commit 9d2cef23f2

View file

@ -25,7 +25,11 @@ func SignedInId(header http.Header, sess session.SessionStore) int64 {
return 0
}
id, _ := base.StrTo(header.Get(setting.ReverseProxyAuthUid)).Int64()
var id int64
if setting.Service.EnableReverseProxyAuth {
id, _ = base.StrTo(header.Get(setting.ReverseProxyAuthUid)).Int64()
}
if id <= 0 {
uid := sess.Get("userId")
if uid == nil {