Generating a new entity with suite 4.02 works OK. However the entry added to the menu in EducatePlusMenuContributor.cs fails to show on the menu itself. I have worked at rearranging the entries, changing the order numbers, Clean and rebuild the project, but fail to get a new menu to show.
I suspect if (await context.IsGrantedAsync(EducatePlusPermissions.TestForMenus.Default)) if not returning true, what can I add to the else statement to get an error message. All entities are the same multitenanted.
Example menu items
if (await authorizationService.IsGrantedAsync(EducatePlusPermissions.Dashboard.Tenant))
{
//TenantDashboard
context.Menu.AddItem(
new ApplicationMenuItem(
EducatePlusMenus.TenantDashboard,
l["Menu:Dashboard"],
"/Dashboard",
icon: "fa fa-line-chart",
order: 4
)
);
}
if (await context.IsGrantedAsync(EducatePlusPermissions.Ethnicities.Default))
{
context.Menu.AddItem(
new ApplicationMenuItem(
"EducatePlus.Ethnicities",
l["Menu:Ethnicities"],
url: "/Ethnicities",
icon: "fa fa-file-alt",
order: 12)
);
}
this one won't show,
if (await context.IsGrantedAsync(EducatePlusPermissions.TestForMenus.Default))
{
context.Menu.AddItem(
new ApplicationMenuItem(
"EducatePlus.TestForMenus",
l["Menu:TestForMenus"],
url: "/TestForMenus",
icon: "fa fa-file-alt",
order: 13)
);
}
Actual output
4 Answer(s)
-
0
await context.IsGrantedAsync(EducatePlusPermissions.TestForMenus.Default)
Maybe the current user does not have
EducatePlusPermissions.TestForMenus.Default
permission -
0
-
0
Can I check it remotely?(UTC+8) shiwei.liang@volosoft.com
-
0
Solved it!! It was different version numbers between suite and Dependancies. All set to 4.1.1 and it works.