Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(banking): BankAccount access should check is resident deleted or not #4703

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

pahaz
Copy link
Member

@pahaz pahaz commented May 6, 2024

No description provided.

Copy link

sonarcloud bot commented May 6, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@@ -48,7 +48,7 @@ async function canReadBankAccounts ({ authentication: { item: user } }) {
],
}
} else if (user.type === RESIDENT) {
const residents = await find('Resident', { user: { id: user.id } })
const residents = await find('Resident', { user: { id: user.id }, deletedAt: null })
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any test?

Copy link

sonarcloud bot commented Jul 4, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants