Base solution for your next web application
Open Closed

Navigation and user access rights #475


User avatar
0
ole created

I only get the left menu when the user is a member of the Admin group.

abp.nav.menus.MainMenu.items is an empty array.

Any suggestions?

thanks Ole


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

    I could not repeat the problem. You can see left menu (with menu items) but abp.nav.menus.MainMenu.items is empty array. Is that true? Are you using SPA or MPA? Also, user should have needed permissions to see the left menu. There are 2 prefined roles (for Tenants): Admin and User. User role has no permission and it's the default role. So, you should login as admin and allow User role to see pages.

  • User Avatar
    0
    ole created

    Thank you for replying. After rebooting my PC it is working. I am using the SPA.

    -ole

  • User Avatar
    0
    hikalkan created
    Support Team

    It should be because of caching. Disable cache of your browser while development. Because bundling & minifying is disabled in debug mode and this cause browser caching of scripts.