Add list & assign/unassign permissions according to Excel file.
MODIFY
src/authorization/AuthorizationsDefinition.ts
src/authorization/AuthorizationsDefinition.ts
@@ -275,7 +275,7 @@ const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
{ resource: Entity.USERS, action: Action.LIST, attributes: ['*'] },
{ resource: Entity.USER, action: [Action.READ], attributes: ['*'] },
{ resource: Entity.USERS_SITES, action: Action.LIST, attributes: ['*'] },
- { resource: Entity.USERS_SITES, action: Action.UNASSIGN, attributes: ['*'] },
+ { resource: Entity.USERS_SITES, action: [Action.ASSIGN, Action.UNASSIGN], attributes: ['*'] },
{ resource: Entity.SITE, action: [Action.UPDATE, Action.DELETE], attributes: ['*'] },
{
resource: Entity.SITE_AREA, action: [Action.CREATE, Action.UPDATE, Action.DELETE], attributes: ['*'],
@@ -320,6 +320,8 @@ const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
grants: [
{ resource: Entity.USERS, action: Action.LIST, attributes: ['*'] },
{ resource: Entity.USER, action: [Action.READ], attributes: ['*'] },
+ { resource: Entity.USERS_SITES, action: Action.LIST, attributes: ['*'] },
+ { resource: Entity.USERS_SITES, action: [Action.ASSIGN, Action.UNASSIGN], attributes: ['*'] },
{ resource: Entity.SITE, action: [Action.UPDATE], attributes: ['*'] },
{
resource: Entity.TRANSACTION, action: [Action.READ, Action.REFUND_TRANSACTION], attributes: ['*'],

Add list & assign/unassign permissions according to Excel file.