diff --git a/packages/plugins/@nocobase/plugin-backup-restore/src/server/server.ts b/packages/plugins/@nocobase/plugin-backup-restore/src/server/server.ts index 815cfb5ae2..d04fbdf6ee 100644 --- a/packages/plugins/@nocobase/plugin-backup-restore/src/server/server.ts +++ b/packages/plugins/@nocobase/plugin-backup-restore/src/server/server.ts @@ -3,7 +3,10 @@ import backupFilesResourcer from './resourcers/backup-files'; export default class Duplicator extends Plugin { beforeLoad() { - // addRestoreCommand(this.app); + this.app.acl.registerSnippet({ + name: `pm.${this.name}`, + actions: ['backupFiles:*'], + }); } async load() { diff --git a/packages/plugins/@nocobase/plugin-users/src/server/server.ts b/packages/plugins/@nocobase/plugin-users/src/server/server.ts index de6344f458..359caef6e7 100644 --- a/packages/plugins/@nocobase/plugin-users/src/server/server.ts +++ b/packages/plugins/@nocobase/plugin-users/src/server/server.ts @@ -110,7 +110,7 @@ export default class PluginUsersServer extends Plugin { this.app.acl.registerSnippet({ name: `pm.${this.name}.*`, - actions: ['users:listExcludeRole'], + actions: ['users:listExcludeRole', 'users:list'], }); }