Browse Source

UI: Fix assets page permissions for customer

pull/6298/head
Igor Kulikov 4 years ago
parent
commit
d9b9d44e39
  1. 2
      ui-ngx/src/app/modules/home/pages/asset/asset-routing.module.ts
  2. 3
      ui-ngx/src/app/modules/home/pages/customer/customer-routing.module.ts

2
ui-ngx/src/app/modules/home/pages/asset/asset-routing.module.ts

@ -39,7 +39,7 @@ const routes: Routes = [
path: '',
component: EntitiesTableComponent,
data: {
auth: [Authority.SYS_ADMIN, Authority.TENANT_ADMIN],
auth: [Authority.TENANT_ADMIN, Authority.CUSTOMER_USER],
title: 'asset.assets',
assetsType: 'tenant'
},

3
ui-ngx/src/app/modules/home/pages/customer/customer-routing.module.ts

@ -178,7 +178,8 @@ const routes: Routes = [
icon: 'domain'
} as BreadCrumbConfig<EntityDetailsPageComponent>,
auth: [Authority.TENANT_ADMIN],
title: 'customer.assets'
title: 'customer.assets',
assetsType: 'customer'
},
resolve: {
entitiesTableConfig: AssetsTableConfigResolver

Loading…
Cancel
Save