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 #375 from egovernments/PFM-2501
Browse files Browse the repository at this point in the history
PFM-2501:: COLLECTION_OPERATOR role added to Create and Update Consumers
  • Loading branch information
Ramkrishna-egov authored Mar 2, 2023
2 parents 9585ded + 16b0bff commit 6a4f823
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
13 changes: 3 additions & 10 deletions frontend/mgramseva/lib/utils/role_actions.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'dart:math';

import 'package:mgramseva/providers/common_provider.dart';
import 'package:mgramseva/routers/Routers.dart';
import 'package:mgramseva/utils/constants.dart';
Expand Down Expand Up @@ -88,19 +86,18 @@ class RoleActionsFiltering {

List<String> getRolesBasedOnModule(String route) {
switch (route) {

// GP Admin
case Routes.HOUSEHOLD:
return ['COLLECTION_OPERATOR', 'SUPERUSER'];

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

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

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

case Routes.HOUSEHOLD_DETAILS:
return ['BULK_DEMAND_PROCESSING', 'COLLECTION_OPERATOR', 'SUPERUSER'];
Expand All @@ -123,10 +120,6 @@ class RoleActionsFiltering {
return ['EXPENSE_PROCESSING', 'SUPERUSER'];
case Routes.EXPENSE_UPDATE:
return ['EXPENSE_PROCESSING', 'SUPERUSER'];

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

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

Expand Down
2 changes: 1 addition & 1 deletion frontend/mgramseva/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "mgramseva",
"version": "1.2.2",
"version": "1.2.4",
"license": "egov"
}
2 changes: 1 addition & 1 deletion frontend/mgramseva/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.2.3+21
version: 1.2.4+22

environment:
sdk: ">=2.12.0 <3.0.0"
Expand Down

0 comments on commit 6a4f823

Please sign in to comment.