diff options
Diffstat (limited to 'routers/repo/issue.go')
-rw-r--r-- | routers/repo/issue.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go index 1843e00144..f0a6d1bd5f 100644 --- a/routers/repo/issue.go +++ b/routers/repo/issue.go @@ -291,6 +291,13 @@ func Issues(ctx *context.Context) { return } + perm, err := models.GetUserRepoPermission(ctx.Repo.Repository, ctx.User) + if err != nil { + ctx.ServerError("GetUserRepoPermission", err) + return + } + ctx.Data["CanWriteIssuesOrPulls"] = perm.CanWriteIssuesOrPulls(isPullList) + ctx.HTML(200, tplIssues) } |