mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-16 12:05:30 +09:00
Fix #165
This commit is contained in:
1 parent
8bfa7ae745
commit
ad5ec45dd6
25 files changed
+484
-450
No files matched your search
@@ -358,7 +358,7 @@ func InitContext() martini.Handler {
|
||||
})
|
||||
|
||||
// Get user from session if logined.
|
||||
user := auth.SignedInUser(ctx.Session)
|
||||
user := auth.SignedInUser(ctx.req.Header, ctx.Session)
|
||||
ctx.User = user
|
||||
ctx.IsSigned = user != nil
|
||||
|
||||
|
||||
Reference in new issue
Block a user