mirror of https://github.com/go-gitea/gitea.git
Some fixes
parent
3bc926b0c2
commit
a2cb233132
|
@ -151,7 +151,7 @@ func ForkPost(ctx *context.Context) {
|
||||||
ctx.Data["ContextUser"] = ctxUser
|
ctx.Data["ContextUser"] = ctxUser
|
||||||
|
|
||||||
if ctx.HasError() {
|
if ctx.HasError() {
|
||||||
ctx.JSONError(tplFork)
|
ctx.JSONError(ctx.GetErrMsg())
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -184,7 +184,7 @@ func ForkPost(ctx *context.Context) {
|
||||||
ctx.ServerError("CanCreateOrgRepo", err)
|
ctx.ServerError("CanCreateOrgRepo", err)
|
||||||
return
|
return
|
||||||
} else if !isAllowedToFork {
|
} else if !isAllowedToFork {
|
||||||
ctx.JSONError(http.StatusForbidden)
|
ctx.HTTPError(http.StatusForbidden)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue