mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 07:57:20 +00:00
chore: acl snippets
This commit is contained in:
parent
2cf11fe7ac
commit
3e02142fda
@ -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() {
|
||||
|
@ -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'],
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user