Fixed address not displayed for sites, companies and site areas in pop-up
MODIFY
src/authorization/AuthorizationsDefinition.ts
src/authorization/AuthorizationsDefinition.ts
@@ -97,7 +97,7 @@ const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
{
resource: Entity.COMPANIES, action: Action.LIST,
attributes: [
- 'id', 'name', 'address', 'logo', 'issuer', 'distanceMeters', 'createdOn', 'lastChangedOn',
+ 'id', 'name', 'address.city', 'address.country', 'logo', 'issuer', 'distanceMeters', 'createdOn', 'lastChangedOn',
'createdBy.name', 'createdBy.firstName', 'lastChangedBy.name', 'lastChangedBy.firstName'
]
},
@@ -133,7 +133,7 @@ const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
{
resource: Entity.SITES, action: Action.LIST,
attributes: [
- 'id', 'name', 'address', 'companyID', 'company.name', 'autoUserSiteAssignment', 'issuer',
+ 'id', 'name', 'address.city', 'address.country', 'companyID', 'company.name', 'autoUserSiteAssignment', 'issuer',
'autoUserSiteAssignment', 'distanceMeters', 'public', 'createdOn', 'lastChangedOn',
'createdBy.name', 'createdBy.firstName', 'lastChangedBy.name', 'lastChangedBy.firstName'
]
@@ -154,7 +154,7 @@ const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
{
resource: Entity.SITE_AREAS, action: Action.LIST,
attributes: [
- 'id', 'name', 'siteID', 'maximumPower', 'voltage', 'numberOfPhases', 'accessControl', 'smartCharging', 'address',
+ 'id', 'name', 'siteID', 'maximumPower', 'voltage', 'numberOfPhases', 'accessControl', 'smartCharging', 'address.city', 'address.country',
'site.id', 'site.name', 'issuer', 'distanceMeters', 'createdOn', 'createdBy', 'lastChangedOn', 'lastChangedBy'
]
},
@@ -393,7 +393,7 @@ const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
args: { filters: ['AssignedSitesCompanies'] }
},
attributes: [
- 'id', 'name', 'address', 'logo', 'issuer', 'distanceMeters', 'createdOn', 'lastChangedOn'
+ 'id', 'name', 'address.city', 'address.country', 'logo', 'issuer', 'distanceMeters', 'createdOn', 'lastChangedOn'
]
},
{
@@ -419,7 +419,7 @@ const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
{
resource: Entity.SITES, action: Action.LIST,
attributes: [
- 'id', 'name', 'address', 'companyID', 'company.name', 'autoUserSiteAssignment', 'issuer',
+ 'id', 'name', 'address.city', 'address.country', 'companyID', 'company.name', 'autoUserSiteAssignment', 'issuer',
'autoUserSiteAssignment', 'distanceMeters', 'public', 'createdOn', 'lastChangedOn',
],
condition: {
@@ -441,7 +441,7 @@ const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
{
resource: Entity.SITE_AREAS, action: Action.LIST,
attributes: [
- 'id', 'name', 'siteID', 'maximumPower', 'voltage', 'numberOfPhases', 'accessControl', 'smartCharging', 'address',
+ 'id', 'name', 'siteID', 'maximumPower', 'voltage', 'numberOfPhases', 'accessControl', 'smartCharging', 'address.city', 'address.country',
'site.id', 'site.name', 'issuer', 'distanceMeters', 'createdOn', 'lastChangedOn'
],
condition: {
@@ -615,7 +615,7 @@ const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
},
{
resource: Entity.COMPANIES, action: Action.LIST, attributes: [
- 'id', 'name', 'address', 'logo', 'issuer', 'distanceMeters', 'createdOn', 'lastChangedOn'
+ 'id', 'name', 'address.city', 'address.country', 'logo', 'issuer', 'distanceMeters', 'createdOn', 'lastChangedOn'
]
},
{
@@ -625,7 +625,7 @@ const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
},
{
resource: Entity.SITES, action: Action.LIST, attributes: [
- 'id', 'name', 'address', 'companyID', 'company.name', 'autoUserSiteAssignment', 'issuer',
+ 'id', 'name', 'address.city', 'address.country', 'companyID', 'company.name', 'autoUserSiteAssignment', 'issuer',
'autoUserSiteAssignment', 'distanceMeters', 'public', 'createdOn', 'lastChangedOn',
]
},
@@ -637,7 +637,7 @@ const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
},
{
resource: Entity.SITE_AREAS, action: Action.LIST, attributes: [
- 'id', 'name', 'siteID', 'maximumPower', 'voltage', 'numberOfPhases', 'accessControl', 'smartCharging', 'address',
+ 'id', 'name', 'siteID', 'maximumPower', 'voltage', 'numberOfPhases', 'accessControl', 'smartCharging', 'address.city', 'address.country',
'site.id', 'site.name', 'issuer', 'distanceMeters', 'createdOn', 'lastChangedOn'
]
},

Fixed address not displayed for sites, companies and site areas in pop-up