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
|
// sync database role data to acl
|
||||||
this.app.on('afterLoad', async () => {
|
this.app.on('afterStart', async () => {
|
||||||
await writeRolesToACL(this.app, {
|
await writeRolesToACL(this.app, {
|
||||||
withOutResources: true,
|
withOutResources: true,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// this.app.on('afterInstall', writeRolesToACL);
|
// this.app.on('afterInstall', writeRolesToACL);
|
||||||
|
|
||||||
this.app.on('afterInstallPlugin', async (plugin) => {
|
this.app.on('afterInstallPlugin', async (plugin) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user