diff --git a/frontend/mgramseva/lib/utils/role_actions.dart b/frontend/mgramseva/lib/utils/role_actions.dart index 63cf20bb2..717a6d77f 100644 --- a/frontend/mgramseva/lib/utils/role_actions.dart +++ b/frontend/mgramseva/lib/utils/role_actions.dart @@ -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'; @@ -88,19 +86,18 @@ class RoleActionsFiltering { List 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']; @@ -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']; diff --git a/frontend/mgramseva/package.json b/frontend/mgramseva/package.json index 55c797f0b..b13034528 100644 --- a/frontend/mgramseva/package.json +++ b/frontend/mgramseva/package.json @@ -1,5 +1,5 @@ { "name": "mgramseva", - "version": "1.2.2", + "version": "1.2.4", "license": "egov" } diff --git a/frontend/mgramseva/pubspec.yaml b/frontend/mgramseva/pubspec.yaml index 283d27209..3690a4f32 100644 --- a/frontend/mgramseva/pubspec.yaml +++ b/frontend/mgramseva/pubspec.yaml @@ -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"