fix(file-manager): only allow logged-in users to upload files

This commit is contained in:
chenos 2023-06-17 21:53:49 +08:00
parent e3045a2f9a
commit 106f9d90f5

View File

@ -45,7 +45,8 @@ export default class PluginFileManager extends Plugin {
initActions(this);
// this.app.acl.allow('attachments', 'upload', 'loggedIn');
this.app.acl.allow('attachments', 'upload', 'loggedIn');
this.app.acl.allow('attachments', 'create', 'loggedIn');
// this.app.resourcer.use(uploadMiddleware);
// this.app.resourcer.use(createAction);