mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-06 14:37:36 +02:00
Fix new pull request link (#3133)
* Fix new pull request link * Only show button for branches
This commit is contained in:
1 parent
e693fda325
commit
0b77dbc11c
2 files changed
+2
-3
No files matched your search
@@ -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)) {
|
||||
|
||||
Reference in new issue
Block a user