Fixed user with role Demo cannot read his profile
MODIFY
src/authorization/AuthorizationsDefinition.ts
src/authorization/AuthorizationsDefinition.ts
@@ -290,7 +290,10 @@ const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
demo: {
grants: [
{
- resource: Entity.USER, action: [Action.READ], attributes: ['*'],
+ resource: Entity.USER, action: [Action.READ], attributes: [
+ 'id', 'name', 'firstName', 'email', 'role', 'status', 'issuer', 'locale', 'plateID',
+ 'notificationsActive', 'notifications', 'phone', 'mobile', 'iNumber', 'costCenter', 'address'
+ ],
condition: { Fn: 'EQUALS', args: { 'user': '$.owner' } }
},
{ resource: Entity.ASSETS, action: Action.LIST, attributes: ['*'] },

Fixed user with role Demo cannot read his profile