mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-10-27 14:05:17 +08:00
Revert "fork render"
This reverts commit 56af7e99a819758c6bedc6d745a9f810f3fc050d.
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.Redirect("/")
|
||||
ctx.Render.Redirect("/")
|
||||
return
|
||||
}
|
||||
ctx.Handle(200, "RepoAssignment", err)
|
||||
@ -42,7 +42,7 @@ func RepoAssignment(redirect bool) martini.Handler {
|
||||
|
||||
if user == nil {
|
||||
if redirect {
|
||||
ctx.Redirect("/")
|
||||
ctx.Render.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.Redirect("/")
|
||||
ctx.Render.Redirect("/")
|
||||
return
|
||||
}
|
||||
ctx.Handle(200, "RepoAssignment", err)
|
||||
|
||||
Reference in New Issue
Block a user