Check the docs before asking a question: https://abp.io/docs/latest
Check the samples to see the basic tasks: https://abp.io/docs/latest/samples
The exact solution to your question may have been answered before, and please first use the search on the homepage.
Provide us with the following info:
🧐 Hint: If you are using the ABP Studio, you can see all the information about your solution from the configuration window, which opens when you right-click on the solution and click on the Solution Configuration
button.
- ABP Framework version: v9.0.3
- UI Type: Blazor Server
- Database System: EF Core ( PostgreSQL)
- Tiered (for MVC) or Auth Server Separated (for Angular): No
- Exception message and full stack trace:
- Steps to reproduce the issue:
Background: I have a following a modular monolith style of developing an application. I have 2 modules apart from Main app.
I am trying to hide the linked accounts, sessions, account delegation etc. Followed the instructions here but did not work. See my screenshots https://abp.io/support/questions/3741/Linked-accounts-in-header-bar
But when i navigate to **session **page - it is not there which is good. Question: Why does it show up when I navigate to other pages + How i can switch it off on all pages?
7 Answer(s)
-
0
Hello,
To reproduce the problem I created a Blazor Server project and did what you did. In my case it worked. In this case I think the problem is caused by the dependencies of your modules and host application. If your modules depend on the account module but you don't really need it, you can remove them. Similarly, such repetitive dependencies on both sides should be removed. The end application already depends on them and it should be its responsibility to manage this dependency.
-
0
-
0
Hello,
Thank you for providing detailed information. In order to minimize the surface of the problem, could you first try to unplug both of your modules from the Host application and try to reproduce the problem? If the problem does not persist, can you add the modules one by one and try again so that we can understand which module or host application is causing the problem.
-
0
got it! let me try that and get back to you!
-
0
Okay, I'm waiting to hear from you.
-
0
Ok, I found the issue.
---- this code
if (context.Menu.Name == StandardMenus.User || context.Menu.Name == StandardMenus.Shortcut) { var LinkedAccounts = context.Menu.GetMenuItemOrNull("Account.LinkedAccounts"); LinkedAccounts?.RequirePermissions(FinxplorerPermissions.UserMenu.LinkedAccounts); }
was inside if (context.Menu.Name == StandardMenus.Main) { await ConfigureMainMenuAsync(context); }
So it was never called to remove it. now, placed it outside.
-
0
Great, now that the problem is solved, I'll close this question,
You can open a new question at any time.