forked from forgejo/forgejo
Fix #165
This commit is contained in:
parent
8bfa7ae745
commit
ad5ec45dd6
25 changed files with 484 additions and 450 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue