0
aqudah81 created
- ABP Framework version: v6.0.0
- UI Type: Angular
- Database System: EF Core (SQL Server)
- ** Auth Server Separated (for Angular)**: yes/no
- Exception message and full stack trace:
- Steps to reproduce the issue:
Hello ,
We need to hide the Identity Management tab from Settings tabs . What is the best way to do that ?
Best regards
5 Answer(s)
-
0
hi
Remove
IdentitySettingManagementPageContributor
fromSettingManagementPageOptions
Configure<SettingManagementPageOptions>(options => { options.Contributors.Remove.. });```
-
0
Hi , I tried it , but the Identity Management tab still appear .
Thanks
-
0
hi
Is the ui angular?
-
0
Hi , Yes
-
0
the simplest way remove the permission that name is
AbpIdentity.SettingManagement
then user cannot seen the settings.But if you want to remove the compenent in settings. Create a provider. Then add app.module.ts as provider. Then get settingsTab service and remove it. (I highly suggested permission based solution)
import { SettingTabsService } from '@abp/ng.setting-management/config'; import { APP_INITIALIZER } from '@angular/core'; import { eIdentitySettingTabNames } from '@volo/abp.ng.identity/config'; export const IDENTITY_SETTING_TAB_PROVIDERS = [ { provide: APP_INITIALIZER, useFactory: configureSettingTabs, deps: [SettingTabsService], multi: true, }, ]; export function configureSettingTabs(settingtabs: SettingTabsService) { return () => { settingtabs.remove([eIdentitySettingTabNames.IdentityManagement]); }; }