Skip to content

Commit

Permalink
Merge pull request #4665 from unicef/fix-permission-payment-hh
Browse files Browse the repository at this point in the history
🔥hotfix-fix permission HH/People details section Payments Table
  • Loading branch information
domdinicola authored Mar 3, 2025
2 parents 2e452e8 + cb5da26 commit 1adfe27
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ distribution = true

[project]
name = "hope"
version = "3.1.3"
version = "3.1.4"
description = "HCT MIS is UNICEF's humanitarian cash transfer platform."
authors = [
{ name = "Tivix" },
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "frontend",
"version": "3.1.3",
"version": "3.1.4",
"private": true,
"type": "module",
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,17 +229,14 @@ export const PeopleDetailsPage = (): ReactElement => {
</Grid>
</OverviewPaper>
{hasPermissions(
PERMISSIONS.PROGRAMME_VIEW_LIST_AND_DETAILS,
PERMISSIONS.PROGRAMME_VIEW_PAYMENT_RECORD_DETAILS,
permissions,
) && (
<PaymentsPeopleTable
openInNewTab
household={household as HouseholdNode}
businessArea={businessArea}
canViewPaymentRecordDetails={hasPermissions(
PERMISSIONS.PROGRAMME_VIEW_PAYMENT_RECORD_DETAILS,
permissions,
)}
canViewPaymentRecordDetails={true}
/>
)}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,17 +189,14 @@ export const PopulationHouseholdDetailsPage = (): ReactElement => {
</>
) : null}
{hasPermissions(
PERMISSIONS.PROGRAMME_VIEW_LIST_AND_DETAILS,
PERMISSIONS.PROGRAMME_VIEW_PAYMENT_RECORD_DETAILS,
permissions,
) && (
<PaymentsHouseholdTable
openInNewTab
household={household as HouseholdNode}
businessArea={businessArea}
canViewPaymentRecordDetails={hasPermissions(
PERMISSIONS.PROGRAMME_VIEW_PAYMENT_RECORD_DETAILS,
permissions,
)}
canViewPaymentRecordDetails={true}
/>
)}
<HouseholdAdditionalRegistrationInformation
Expand Down

0 comments on commit 1adfe27

Please sign in to comment.