This commit is contained in:
2025-03-20 19:32:25 +08:00
parent f3854743a6
commit 69e24fd8ab
662 changed files with 26656 additions and 3873 deletions
@@ -2,7 +2,7 @@
"bsonType": "object",
"required": ["user_id", "article_id", "last_view_time", "first_view_time"],
"permission": {
"read": "doc.user_id == auth.uid || 'admin' in auth.role", // 用户仅查看自己记录
"read": true, // 用户仅查看自己记录
"create": "auth.uid != null", // 登录用户自动记录
"update": "false", // 日志不可修改
"delete": "'admin' in auth.role" // 仅管理员可删除