From 0714437b1042f16021a53736b407fd0137e115de Mon Sep 17 00:00:00 2001 From: Travis Semple Date: Wed, 15 Jan 2025 12:38:32 -0800 Subject: [PATCH] Put back permission --- auth-web/src/components/auth/common/Product.vue | 2 +- auth-web/src/util/common-util.ts | 6 +++--- auth-web/src/util/constants.ts | 2 +- auth-web/src/views/auth/AccountSettings.vue | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/auth-web/src/components/auth/common/Product.vue b/auth-web/src/components/auth/common/Product.vue index 5f97ba212..36cf888ea 100644 --- a/auth-web/src/components/auth/common/Product.vue +++ b/auth-web/src/components/auth/common/Product.vue @@ -248,7 +248,7 @@ export default defineComponent({ return TOS_NEEDED_PRODUCT.includes(props.productDetails.code) }), filteredPaymentMethods: computed(() => { - // TODO, this looks at the current org? not the org in creation? + // TODO - Needs EFT if (orgStore.isGovmOrg) { return props.paymentMethods.filter((method) => method === PaymentTypes.EJV) } diff --git a/auth-web/src/util/common-util.ts b/auth-web/src/util/common-util.ts index d3863d142..ae2fafdc7 100644 --- a/auth-web/src/util/common-util.ts +++ b/auth-web/src/util/common-util.ts @@ -227,7 +227,7 @@ export default class CommonUtils { Permission.VIEW_ADDRESS, Permission.VIEW_ADMIN_CONTACT, Permission.VIEW_AUTH_OPTIONS, - Permission.VIEW_PRODUCT_AND_PAYMENT_METHOD, + Permission.VIEW_REQUEST_PRODUCT_PACKAGE, Permission.VIEW_USER_LOGINSOURCE, Permission.EDIT_USER, Permission.VIEW_BUSINESS_REGISTRY_DASHBOARD, @@ -251,7 +251,7 @@ export default class CommonUtils { Permission.VIEW_ADDRESS, Permission.VIEW_ADMIN_CONTACT, Permission.VIEW_AUTH_OPTIONS, - Permission.VIEW_PRODUCT_AND_PAYMENT_METHOD, + Permission.VIEW_REQUEST_PRODUCT_PACKAGE, Permission.VIEW_USER_LOGINSOURCE ] } @@ -263,7 +263,7 @@ export default class CommonUtils { Permission.VIEW_ADMIN_CONTACT, Permission.RESET_OTP, Permission.VIEW_AUTH_OPTIONS, - Permission.VIEW_PRODUCT_AND_PAYMENT_METHOD + Permission.VIEW_REQUEST_PRODUCT_PACKAGE ] } diff --git a/auth-web/src/util/constants.ts b/auth-web/src/util/constants.ts index a294e8649..ac05947bd 100644 --- a/auth-web/src/util/constants.ts +++ b/auth-web/src/util/constants.ts @@ -450,7 +450,7 @@ export enum Permission { CHANGE_AUTH_OPTIONS = 'CHANGE_AUTH_OPTIONS', EDIT_REQUEST_PRODUCT_PACKAGE = 'EDIT_REQUEST_PRODUCT_PACKAGE', VIEW_ACTIVITYLOG = 'VIEW_ACTIVITYLOG', - VIEW_PRODUCT_AND_PAYMENT_METHOD='VIEW_PRODUCT_AND_PAYMENT_METHOD', + VIEW_REQUEST_PRODUCT_PACKAGE='VIEW_REQUEST_PRODUCT_PACKAGE', DEACTIVATE_ACCOUNT='DEACTIVATE_ACCOUNT', VIEW_USER_LOGINSOURCE='VIEW_USER_LOGINSOURCE', EDIT_BUSINESS_INFO = 'EDIT_BUSINESS_INFO', diff --git a/auth-web/src/views/auth/AccountSettings.vue b/auth-web/src/views/auth/AccountSettings.vue index f457b8d09..fd0e28a6c 100644 --- a/auth-web/src/views/auth/AccountSettings.vue +++ b/auth-web/src/views/auth/AccountSettings.vue @@ -192,7 +192,7 @@ Authentication