mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Bug fix
This commit is contained in:
		@@ -56,7 +56,9 @@ func RepoAssignment(redirect bool) martini.Handler {
 | 
			
		||||
		// get repository
 | 
			
		||||
		repo, err := models.GetRepositoryByName(user.Id, params["reponame"])
 | 
			
		||||
		if err != nil {
 | 
			
		||||
			if redirect {
 | 
			
		||||
			if err == models.ErrRepoNotExist {
 | 
			
		||||
				ctx.Handle(404, "RepoAssignment", err)
 | 
			
		||||
			} else if redirect {
 | 
			
		||||
				ctx.Redirect("/")
 | 
			
		||||
				return
 | 
			
		||||
			}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user