aboutsummaryrefslogtreecommitdiffstats
path: root/templates/projects/view.tmpl
diff options
context:
space:
mode:
authoryp05327 <576951401@qq.com>2023-05-09 13:50:16 +0900
committerGitHub <noreply@github.com>2023-05-09 00:50:16 -0400
commit2ee72d011fa05852ba4117a8b849fde32cbd54e7 (patch)
tree93653c3d51c3effe34c1f369812a3bb903421dcb /templates/projects/view.tmpl
parentd5b2bf9044caad9fb473312c4816f6c6caad4698 (diff)
downloadgitea-2ee72d011fa05852ba4117a8b849fde32cbd54e7.tar.gz
gitea-2ee72d011fa05852ba4117a8b849fde32cbd54e7.zip
Add permission check for moving issue action in project view page (#24589)
Fix #22954 Only users who have write permission can move issues in the project view page.
Diffstat (limited to 'templates/projects/view.tmpl')
-rw-r--r--templates/projects/view.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/projects/view.tmpl b/templates/projects/view.tmpl
index 705ce52d6c..3274463435 100644
--- a/templates/projects/view.tmpl
+++ b/templates/projects/view.tmpl
@@ -73,7 +73,7 @@
</div>
<div class="ui container fluid padded" id="project-board">
- <div class="board">
+ <div class="board {{if .CanWriteProjects}}sortable{{end}}">
{{range $board := .Boards}}
<div class="ui segment board-column" style="background: {{.Color}} !important;" data-id="{{.ID}}" data-sorting="{{.Sorting}}" data-url="{{$.Link}}/{{.ID}}">