EasyAbp / AbpHelper.CLI

Providing code generation and more features to help you develop applications and modules with the ABP framework.
MIT License
285 stars 95 forks source link

ConfigureMainMenuAsync() isn't async #162

Closed improwise closed 2 years ago

improwise commented 2 years ago

(This could be an ABP Suite problem as we have used that to generate the solution)

Just noticed that:

private Task ConfigureMainMenuAsync(MenuConfigurationContext context)

while being named async seems to lack the "async" declaration so code like:

if (await context.IsGrantedAsync("MyPermissionName"))
{
    //...add menu items
}

won't work.

This is probably related to #154

improwise commented 2 years ago

Wrong repo