From 89297c9355cf15fa733af900d9dcc4bb681bc137 Mon Sep 17 00:00:00 2001 From: yp05327 <576951401@qq.com> Date: Wed, 26 Apr 2023 20:38:41 +0900 Subject: [PATCH] Fix no edit/close/delete button in org repo project view page (#24349) Backport #24301 --- templates/repo/projects/view.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/repo/projects/view.tmpl b/templates/repo/projects/view.tmpl index 0f6ff79f34c..da2fc365d3a 100644 --- a/templates/repo/projects/view.tmpl +++ b/templates/repo/projects/view.tmpl @@ -47,7 +47,7 @@

{{$.Project.Title}}

{{$.Project.RenderedContent|Str2html}}
- {{if and (or $.CanWriteIssues $.CanWritePulls) (not $.Repository.IsArchived)}} + {{if and $.CanWriteProjects (not $.Repository.IsArchived)}}
-{{if or .CanWriteIssues .CanWritePulls}} +{{if .CanWriteProjects}}