mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 06:46:38 +00:00
chore: load roles after start (#3763)
This commit is contained in:
parent
3da340c88d
commit
a2ae4f7b70
@ -398,11 +398,12 @@ export class PluginACL extends Plugin {
|
||||
};
|
||||
|
||||
// sync database role data to acl
|
||||
this.app.on('afterLoad', async () => {
|
||||
this.app.on('afterStart', async () => {
|
||||
await writeRolesToACL(this.app, {
|
||||
withOutResources: true,
|
||||
});
|
||||
});
|
||||
|
||||
// this.app.on('afterInstall', writeRolesToACL);
|
||||
|
||||
this.app.on('afterInstallPlugin', async (plugin) => {
|
||||
|
Loading…
Reference in New Issue
Block a user