mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Fix #165
This commit is contained in:
		@@ -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