0
WilliamT created
- ABP Framework version: v7.1.2
- UI Type: MVC
- Database System: EF Core (SQL Server, Oracle, MySQL, PostgreSQL, etc..)
- Tiered (for MVC) or Auth Server Separated (for Angular): yes
- Exception message and full stack trace:
- Steps to reproduce the issue:
Hi,
How Can I remove these 4 items from "Main" Toolbar:
- Linked Accounts
- Authority delegation
- security logs
- Personal data
Is there a way to control those items via permission?
Regards,
Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
3 Answer(s)
-
0
Hello WilliamT,
Please add this code to CustomMenuContributor under
*.Web/Menuspublic async Task ConfigureMenuAsync(MenuConfigurationContext context) { if (context.Menu.Name == StandardMenus.User) { context.Menu.Items.RemoveAll(x => x.Name == "Account.SecurityLogs"); context.Menu.Items.RemoveAll(x => x.Name == "Account.LinkedAccounts"); context.Menu.Items.RemoveAll(x => x.Name == "Account.AuthorityDelegation"); } }It will gives output like
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
Hello WilliamT,
please try to add the below code to add new menu item
context.Menu.AddItem( new ApplicationMenuItem(demo5979Menus.Home,"My New Menu Item", "/My/NewMenuItem", icon: "fa fa-home"));Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
