1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-07-25 12:39:40 +02:00

Fix new pull request link (#3133)

* Fix new pull request link

* Only show button for branches
This commit is contained in:
Ethan Koenig 2017-12-12 21:06:25 -08:00 committed by Lunny Xiao
parent e693fda325
commit 0b77dbc11c
2 changed files with 2 additions and 3 deletions

View file

@ -427,7 +427,6 @@ 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)) {