mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 09:29:16 +00:00
fix: emit async
This commit is contained in:
parent
ad2908dd76
commit
5e4682be72
@ -32,7 +32,7 @@ export async function checkAction(ctx, next) {
|
||||
let role = ctx.app.acl.getRole(currentRole);
|
||||
|
||||
if (!role) {
|
||||
await ctx.app.emit('acl:writeRoleToACL', roleInstance);
|
||||
await ctx.app.emitAsync('acl:writeRoleToACL', roleInstance);
|
||||
role = ctx.app.acl.getRole(currentRole);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user