mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	fork render
This commit is contained in:
		| @@ -30,7 +30,7 @@ func RepoAssignment(redirect bool) martini.Handler { | ||||
| 			user, err = models.GetUserByName(params["username"]) | ||||
| 			if err != nil { | ||||
| 				if redirect { | ||||
| 					ctx.Render.Redirect("/") | ||||
| 					ctx.Redirect("/") | ||||
| 					return | ||||
| 				} | ||||
| 				ctx.Handle(200, "RepoAssignment", err) | ||||
| @@ -42,7 +42,7 @@ func RepoAssignment(redirect bool) martini.Handler { | ||||
|  | ||||
| 		if user == nil { | ||||
| 			if redirect { | ||||
| 				ctx.Render.Redirect("/") | ||||
| 				ctx.Redirect("/") | ||||
| 				return | ||||
| 			} | ||||
| 			ctx.Handle(200, "RepoAssignment", errors.New("invliad user account for single repository")) | ||||
| @@ -55,7 +55,7 @@ func RepoAssignment(redirect bool) martini.Handler { | ||||
| 		repo, err := models.GetRepositoryByName(user, params["reponame"]) | ||||
| 		if err != nil { | ||||
| 			if redirect { | ||||
| 				ctx.Render.Redirect("/") | ||||
| 				ctx.Redirect("/") | ||||
| 				return | ||||
| 			} | ||||
| 			ctx.Handle(200, "RepoAssignment", err) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user