From 99d08914134851e8a43e1c47d2beb6134b882cc2 Mon Sep 17 00:00:00 2001 From: Victor_Jay Date: Sun, 31 May 2026 20:02:24 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=9B=E4=BD=9C=E4=B8=AD=E5=BF=83?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E7=AE=A1=E7=90=86=E9=A1=B5=20-=20=E9=94=81?= =?UTF-8?q?=E5=AE=9A=E6=96=87=E7=AB=A0=E6=98=BE=E7=A4=BA"=E5=B7=B2?= =?UTF-8?q?=E9=94=81=E5=AE=9A"=E6=A0=87=E7=AD=BE=EF=BC=8C=E9=9A=90?= =?UTF-8?q?=E8=97=8F=E7=BC=96=E8=BE=91=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 文章被锁定时,在主状态徽章旁追加"已锁定"标签(如 "已发布" "已锁定") - 被锁定的帖子隐藏"编辑"按钮,仅显示"查看"和"删除"按钮 - API 层已有保护:Update 方法检查 IsLocked,拒绝越权编辑 --- templates/MetaLab-2026/html/studio/posts.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/MetaLab-2026/html/studio/posts.html b/templates/MetaLab-2026/html/studio/posts.html index 8af82dd..c77d343 100644 --- a/templates/MetaLab-2026/html/studio/posts.html +++ b/templates/MetaLab-2026/html/studio/posts.html @@ -39,6 +39,7 @@ {{.Title}}
{{index $.StatusNames .Status}} + {{if .IsLocked}}已锁定{{end}} {{.CreatedAt.Format "2006-01-02 15:04"}} {{if .RejectReason}} 退回理由:{{.RejectReason}} @@ -46,7 +47,7 @@
- 编辑 + {{if not .IsLocked}}编辑{{end}} 查看