mirror of
https://github.com/go-gitea/gitea
synced 2025-07-08 19:47:21 +00:00
fix click create pull request button 404 (#2859)
This commit is contained in:
@ -424,6 +424,7 @@ func RepoAssignment() macaron.Handler {
|
||||
return
|
||||
}
|
||||
}
|
||||
ctx.Data["IsForkedRepo"] = repo.IsFork
|
||||
|
||||
// People who have push access or have forked repository can propose a new pull request.
|
||||
if ctx.Repo.IsWriter() || (ctx.IsSigned && ctx.User.HasForkedRepo(ctx.Repo.Repository.ID)) {
|
||||
|
Reference in New Issue
Block a user