Browse Source

feat(settings-management): add requiredPolicy to settings page

pull/2015/head
thediaval 7 years ago
parent
commit
04bcc4f4a9
  1. 1
      npm/ng-packs/packages/setting-management-config/src/lib/services/setting-management-config.service.ts
  2. 4
      npm/ng-packs/packages/setting-management/src/lib/setting-management-routing.module.ts

1
npm/ng-packs/packages/setting-management-config/src/lib/services/setting-management-config.service.ts

@ -12,6 +12,7 @@ export class SettingManagementConfigService {
name: 'AbpSettingManagement::Settings', name: 'AbpSettingManagement::Settings',
path: 'setting-management', path: 'setting-management',
parentName: 'AbpUiNavigation::Menu:Administration', parentName: 'AbpUiNavigation::Menu:Administration',
requiredPolicy: 'AbpAccount.SettingManagement',
layout: eLayoutType.application, layout: eLayoutType.application,
order: 6, order: 6,
iconClass: 'fa fa-cog', iconClass: 'fa fa-cog',

4
npm/ng-packs/packages/setting-management/src/lib/setting-management-routing.module.ts

@ -7,7 +7,9 @@ const routes: Routes = [
{ {
path: '', path: '',
component: DynamicLayoutComponent, component: DynamicLayoutComponent,
children: [{ path: '', component: SettingManagementComponent }], children: [
{ path: '', component: SettingManagementComponent, data: { requiredPolicy: 'AbpAccount.SettingManagement' } },
],
}, },
]; ];

Loading…
Cancel
Save