Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Power Tools creates incorrect permissionDependency in AppNavigationProvider.cs #8604


User avatar
0
ebenzle created

After running Power Tools to create a new Entity we always get an error:

An unhandled exception occurred while processing the request. AbpException: There is no permission with name: AppPermissions.Pages_CourseCategories

Checking the file 'AppNavigationProvider.cs' it looks like the tool wrapped the permission in double quotes:

.AddItem(new MenuItemDefinition( AppPageNames.Common.CourseCategories, L("CourseCategories"), url: "App/CourseCategories", icon: "flaticon-more", permissionDependency: new SimplePermissionDependency("AppPermissions.Pages_CourseCategories") <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< ) )

Removing the quotes in that line fixes the error: permissionDependency: new SimplePermissionDependency(AppPermissions.Pages_CourseCategories) <<<<<<<<<<<<<<

Is this a bug with the Power Tools, or am I doing something wrong when I create the entity? Would rather not manually update that file everytime.


3 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    hi

    Please update PowerTool and try again.

    https://marketplace.visualstudio.com/items?itemName=Volosoft.AspNetZeroPowerTools&ssr=false

    see https://github.com/aspnetzero/aspnet-zero-core/issues/3010

  • User Avatar
    0
    ebenzle created

    Hi, I've uninstalled Power Tools and reinstalled the latest version. Still having this issue. I also noticed that the tool is not creating cooresponding fields for Navigation Property. This causes an error when trying to add or edit an entity.

    A coworker is using the tools without this issue, so I think it may be something with the way my environment is setup. Any thoughts?

  • User Avatar
    0
    musa.demir created

    Hi @ebenzle. It is fixed and will be released asap. Can you please download new version and check it.