Skip to content

Commit

Permalink
Put back permission
Browse files Browse the repository at this point in the history
  • Loading branch information
seeker25 committed Jan 15, 2025
1 parent 4174b78 commit 0714437
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion auth-web/src/components/auth/common/Product.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
6 changes: 3 additions & 3 deletions auth-web/src/util/common-util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
]
}
Expand All @@ -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
]
}

Expand Down
2 changes: 1 addition & 1 deletion auth-web/src/util/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion auth-web/src/views/auth/AccountSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
<v-list-item-title>Authentication</v-list-item-title>
</v-list-item>
<v-list-item
v-can:VIEW_PRODUCT_AND_PAYMENT_METHOD.hide
v-can:VIEW_REQUEST_PRODUCT_PACKAGE.hide
dense
class="py-1 px-4"
aria-label="Products and Payment"
Expand Down

0 comments on commit 0714437

Please sign in to comment.