From 12bb9f427e8a399d117303b24a6c847a701608e2 Mon Sep 17 00:00:00 2001 From: Ramkrishna-egov Date: Thu, 2 Mar 2023 14:58:08 +0530 Subject: [PATCH 1/2] PFM-2501:: COLLECTION_OPERATOR role added to Create and Update Consumers --- frontend/mgramseva/lib/utils/role_actions.dart | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) 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']; From 16b0bffe99bfe1f7c32965d3438c479d7b40c867 Mon Sep 17 00:00:00 2001 From: Ramkrishna-egov Date: Thu, 2 Mar 2023 15:27:16 +0530 Subject: [PATCH 2/2] Updated package.json --- frontend/mgramseva/package.json | 2 +- frontend/mgramseva/pubspec.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"