mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 14:41:23 +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);
|
let role = ctx.app.acl.getRole(currentRole);
|
||||||
|
|
||||||
if (!role) {
|
if (!role) {
|
||||||
await ctx.app.emit('acl:writeRoleToACL', roleInstance);
|
await ctx.app.emitAsync('acl:writeRoleToACL', roleInstance);
|
||||||
role = ctx.app.acl.getRole(currentRole);
|
role = ctx.app.acl.getRole(currentRole);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user