From 4d2817268a87d679b70a07e5fc1703bf5a257123 Mon Sep 17 00:00:00 2001 From: chenos Date: Thu, 5 Jan 2023 17:34:58 +0800 Subject: [PATCH] fix: collections history allows logged-in user access --- packages/plugins/snapshot-field/src/server/plugin.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/plugins/snapshot-field/src/server/plugin.ts b/packages/plugins/snapshot-field/src/server/plugin.ts index c15f25a4d..aed76cc14 100644 --- a/packages/plugins/snapshot-field/src/server/plugin.ts +++ b/packages/plugins/snapshot-field/src/server/plugin.ts @@ -69,6 +69,8 @@ export class SnapshotFieldPlugin extends Plugin { this.app.db.registerFieldTypes({ snapshot: SnapshotField, }); + + this.app.acl.allow('collectionsHistory', 'list', 'loggedIn'); } // 初始化安装的时候