forked from forgejo/forgejo
fix click create pull request button 404 (#2859)
This commit is contained in:
parent
80a4643359
commit
ff9daa3e9b
2 changed files with 2 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue