chore: acl snippets

This commit is contained in:
Chareice 2024-03-03 14:36:13 +08:00
parent 2cf11fe7ac
commit 3e02142fda
No known key found for this signature in database
2 changed files with 5 additions and 2 deletions

View File

@ -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() {

View File

@ -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'],
});
}