Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #518 from egovernments/PFM-4141
Browse files Browse the repository at this point in the history
PFM-4141 added 'DIV_ADMIN' role for all cards
  • Loading branch information
Saloni-eGov authored Sep 1, 2023
2 parents c7c3d61 + 44f4bcc commit df1601f
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions frontend/mgramseva/lib/utils/role_actions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -89,19 +89,19 @@ class RoleActionsFiltering {
switch (route) {
// GP Admin
case Routes.HOUSEHOLD:
return ['COLLECTION_OPERATOR', 'SUPERUSER','DIV_ADMIN'];
return ['COLLECTION_OPERATOR', 'SUPERUSER', 'DIV_ADMIN'];

case Routes.CONSUMER_UPDATE:
return ['GP_ADMIN', 'SUPERUSER', 'COLLECTION_OPERATOR','DIV_ADMIN'];
return ['GP_ADMIN', 'SUPERUSER', 'COLLECTION_OPERATOR', 'DIV_ADMIN'];

case Routes.CONSUMER_SEARCH_UPDATE:
return ['GP_ADMIN', 'SUPERUSER', 'COLLECTION_OPERATOR','DIV_ADMIN'];
return ['GP_ADMIN', 'SUPERUSER', 'COLLECTION_OPERATOR', 'DIV_ADMIN'];

case Routes.CONSUMER_CREATE:
return ['GP_ADMIN', 'SUPERUSER', 'COLLECTION_OPERATOR','DIV_ADMIN'];
return ['GP_ADMIN', 'SUPERUSER', 'COLLECTION_OPERATOR', 'DIV_ADMIN'];

case Routes.HOUSEHOLD_DETAILS:
return ['BULK_DEMAND_PROCESSING', 'COLLECTION_OPERATOR', 'SUPERUSER','DIV_ADMIN'];
return ['BULK_DEMAND_PROCESSING', 'COLLECTION_OPERATOR', 'SUPERUSER', 'DIV_ADMIN'];

case Routes.SEARCH_CONSUMER_RESULT:
return [
Expand All @@ -113,29 +113,29 @@ class RoleActionsFiltering {
];

case Routes.HOUSEHOLD_REGISTER:
return ['COLLECTION_OPERATOR', 'SUPERUSER','DIV_ADMIN'];
return ['COLLECTION_OPERATOR', 'SUPERUSER', 'DIV_ADMIN'];

// Expense Processing
case Routes.EXPENSE_SEARCH:
return ['EXPENSE_PROCESSING', 'SUPERUSER','DIV_ADMIN'];
return ['EXPENSE_PROCESSING', 'SUPERUSER', 'DIV_ADMIN'];
case Routes.EXPENSES_ADD:
return ['EXPENSE_PROCESSING', 'SUPERUSER','DIV_ADMIN'];
return ['EXPENSE_PROCESSING', 'SUPERUSER', 'DIV_ADMIN'];
case Routes.EXPENSE_UPDATE:
return ['EXPENSE_PROCESSING', 'SUPERUSER','DIV_ADMIN'];
return ['EXPENSE_PROCESSING', 'SUPERUSER', 'DIV_ADMIN'];
case Routes.HOUSEHOLDRECEIPTS:
return ['BULK_DEMAND_PROCESSING', 'COLLECTION_OPERATOR', 'SUPERUSER','DIV_ADMIN'];
return ['BULK_DEMAND_PROCESSING', 'COLLECTION_OPERATOR', 'SUPERUSER', 'DIV_ADMIN'];

case Routes.MANUAL_BILL_GENERATE:
return ['BULK_DEMAND_PROCESSING', 'SUPERUSER','DIV_ADMIN'];
return ['BULK_DEMAND_PROCESSING', 'SUPERUSER', 'DIV_ADMIN'];

// Collection Operator
case Routes.CONSUMER_SEARCH:
return ['COLLECTION_OPERATOR', 'SUPERUSER','DIV_ADMIN'];
return ['COLLECTION_OPERATOR', 'SUPERUSER', 'DIV_ADMIN'];
case Routes.BILL_GENERATE:
return ['COLLECTION_OPERATOR', 'SUPERUSER','DIV_ADMIN'];
return ['COLLECTION_OPERATOR', 'SUPERUSER', 'DIV_ADMIN'];

case Routes.DASHBOARD:
return ['SUPERUSER', 'DASHBOARD_VIEWER','DIV_ADMIN'];
return ['SUPERUSER', 'DASHBOARD_VIEWER', 'DIV_ADMIN'];
default:
return [];
}
Expand Down

0 comments on commit df1601f

Please sign in to comment.