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

Commit

Permalink
Browse files Browse the repository at this point in the history
…mseva into ISTE-17
  • Loading branch information
chinmoy-eGov committed Apr 22, 2024
2 parents f610ab0 + 1d2c20a commit 5a30509
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
15 changes: 8 additions & 7 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','SARPANCH','SECRETORY'];
return ['COLLECTION_OPERATOR', 'SUPERUSER', 'DIV_ADMIN','SARPANCH','SECRETORY' ,'REVENUE_COLLECTOR'];

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

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

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

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

case Routes.SEARCH_CONSUMER_RESULT:
return [
Expand All @@ -112,10 +112,11 @@ class RoleActionsFiltering {
'DIV_ADMIN',
'SARPANCH',
'SECRETORY'
'REVENUE_COLLECTOR'
];

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

// Expense Processing
case Routes.EXPENSE_SEARCH:
Expand All @@ -125,7 +126,7 @@ class RoleActionsFiltering {
case Routes.EXPENSE_UPDATE:
return ['EXPENSE_PROCESSING', 'SUPERUSER', 'DIV_ADMIN','SARPANCH','SECRETORY'];
case Routes.HOUSEHOLDRECEIPTS:
return ['BULK_DEMAND_PROCESSING', 'COLLECTION_OPERATOR', 'SUPERUSER', 'DIV_ADMIN','SARPANCH','SECRETORY'];
return ['BULK_DEMAND_PROCESSING', 'COLLECTION_OPERATOR', 'SUPERUSER', 'DIV_ADMIN','SARPANCH','SECRETORY','REVENUE_COLLECTOR'];

case Routes.MANUAL_BILL_GENERATE:
return ['BULK_DEMAND_PROCESSING', 'SUPERUSER', 'DIV_ADMIN','SARPANCH','SECRETORY'];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ const Password = (props) => {
ref={props.inputRef}
value={props.value}
style={{ ...props.style }}
minLength={props.minlength}
maxLength={props.maxlength}
minLength={props.minlength || 10}
maxLength={props.maxlength || 10}
max={props.max}
min={props.min}
readOnly={props.disable}
Expand Down

0 comments on commit 5a30509

Please sign in to comment.