Updated Auths for car
MODIFY
src/authorization/AuthorizationsDefinition.ts
src/authorization/AuthorizationsDefinition.ts
@@ -86,13 +86,10 @@ const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
{ resource: Entity.CONNECTION, action: [Action.CREATE, Action.READ, Action.DELETE], attributes: ['*'] },
{ resource: Entity.CAR_CATALOGS, action: Action.LIST, attributes: ['*'] },
{ resource: Entity.CAR_CATALOG, action: Action.READ, attributes: ['*'] },
- { resource: Entity.CAR, action: Action.CREATE, attributes: ['*'] },
+ { resource: Entity.CAR, action: [Action.CREATE, Action.READ, Action.UPDATE, Action.DELETE], attributes: ['*'] },
{ resource: Entity.CARS, action: Action.LIST, attributes: ['*'] },
{ resource: Entity.USERS_CARS, action: Action.LIST, attributes: ['*'] },
{ resource: Entity.USERS_CARS, action: Action.ASSIGN, attributes: ['*'] },
- { resource: Entity.CAR, action: Action.READ, attributes: ['*'] },
- { resource: Entity.CAR, action: Action.UPDATE, attributes: ['*'] },
- { resource: Entity.CAR, action: Action.DELETE, attributes: ['*'] },
{ resource: Entity.NOTIFICATION, action: Action.CREATE, attributes: ['*'] },
]
},
@@ -107,10 +104,7 @@ const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
{ resource: Entity.COMPANIES, action: Action.LIST, attributes: ['*'] },
{ resource: Entity.CAR_CATALOGS, action: Action.LIST, attributes: ['*'] },
{ resource: Entity.CAR_CATALOG, action: Action.READ, attributes: ['*'] },
- { resource: Entity.CAR, action: Action.CREATE, attributes: ['*'] },
- { resource: Entity.CAR, action: Action.UPDATE, attributes: ['*'] },
- { resource: Entity.CAR, action: Action.READ, attributes: ['*'] },
- { resource: Entity.CAR, action: Action.DELETE, attributes: ['*'] },
+ { resource: Entity.CAR, action: [Action.CREATE, Action.READ, Action.UPDATE, Action.DELETE], attributes: ['*'] },
{ resource: Entity.CARS, action: Action.LIST, attributes: ['*'] },
{
resource: Entity.COMPANY, action: Action.READ, attributes: ['*'],

Updated Auths for car