From 17c22a8cd3635e7b651e8a775d09b3f7f181a0ec Mon Sep 17 00:00:00 2001 From: qing <1776177662@qq.com> Date: Sat, 25 Jul 2026 14:25:06 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=91=98=E4=B9=9F=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E6=9B=B4=E6=96=B0=E5=88=AB=E4=BA=BA=E7=9A=84=E8=8A=82?= =?UTF-8?q?=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dnfs/dnfs.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dnfs/dnfs.py b/dnfs/dnfs.py index 05e8242..2c397cc 100755 --- a/dnfs/dnfs.py +++ b/dnfs/dnfs.py @@ -403,9 +403,8 @@ def update_note(): data = call_db_service(DB_SERVER_URL, select_payload) notes = data['data'] - if not info['user'] == 'admin': - if not len(notes) == 1 or not notes[0]['owner'] == info['user']: - return jsonify({"error": 'It\'s not your note'}), 403 + if not len(notes) == 1 or not notes[0]['owner'] == info['user']: + return jsonify({"error": 'It\'s not your note'}), 403 # 内容审查 review = review_content(title + '\n' + content, 10)