mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-04 06:24:11 +01:00 
			
		
		
		
	Auth problem related #80
This commit is contained in:
		
							parent
							
								
									7ad05ce210
								
							
						
					
					
						commit
						6277f8497c
					
				@ -1,3 +1,7 @@
 | 
				
			|||||||
 | 
					// Copyright 2014 The Gogs Authors. All rights reserved.
 | 
				
			||||||
 | 
					// Use of this source code is governed by a MIT-style
 | 
				
			||||||
 | 
					// license that can be found in the LICENSE file.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
package repo
 | 
					package repo
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import (
 | 
					import (
 | 
				
			||||||
@ -54,7 +58,7 @@ func Http(ctx *middleware.Context, params martini.Params) {
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// only public pull don't need auth
 | 
						// only public pull don't need auth
 | 
				
			||||||
	var askAuth = !(!repo.IsPrivate && isPull)
 | 
						var askAuth = !(!repo.IsPrivate && isPull) || base.Service.RequireSignInView
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	var authUser *models.User
 | 
						var authUser *models.User
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user