mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 11:41:32 +01:00 
			
		
		
		
	Fix #165
This commit is contained in:
		
							parent
							
								
									ad5ec45dd6
								
							
						
					
					
						commit
						9d2cef23f2
					
				| @ -25,7 +25,11 @@ func SignedInId(header http.Header, sess session.SessionStore) int64 { | |||||||
| 		return 0 | 		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 { | 	if id <= 0 { | ||||||
| 		uid := sess.Get("userId") | 		uid := sess.Get("userId") | ||||||
| 		if uid == nil { | 		if uid == nil { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user