fix(acl): write roles to acl after app load
This commit is contained in:
parent
419a6e4cbf
commit
a1fba4ba26
@ -268,8 +268,10 @@ export class PluginACL extends Plugin {
|
||||
});
|
||||
|
||||
// sync database role data to acl
|
||||
this.app.on('beforeStart', async () => {
|
||||
await this.writeRolesToACL();
|
||||
this.app.on('afterLoad', async (app, options) => {
|
||||
if (options.method !== 'install') {
|
||||
await this.writeRolesToACL();
|
||||
}
|
||||
});
|
||||
|
||||
this.app.on('beforeInstallPlugin', async (plugin) => {
|
||||
|
@ -17,7 +17,7 @@ export class CustomPagePlugin extends Plugin {
|
||||
reset: 'Rate-Limit-Reset',
|
||||
total: 'Rate-Limit-Total',
|
||||
},
|
||||
max: 20,
|
||||
max: 200,
|
||||
disableHeader: false,
|
||||
whitelist: (ctx) => {
|
||||
// some logic that returns a boolean
|
||||
|
Loading…
Reference in New Issue
Block a user