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

Grant file download access for multiple downloads to specific roles. #235

Closed
wants to merge 4 commits into from

Conversation

viralkansodiya
Copy link
Contributor

Copy link
Owner

@agritheory agritheory left a comment

Choose a reason for hiding this comment

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

This PR should target the version-15 branch.

@@ -399,6 +410,9 @@ function download_nacha(frm) {
window.setTimeout(() => {
frm.reload_doc()
}, 1000)
if (!frm.doc.ach_file_generated) {
frappe.db.set_value('Check Run', frm.doc.name, 'ach_file_generated', 1)
Copy link
Owner

Choose a reason for hiding this comment

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

Please refactor this to use a whitelisted function. Generally we want to avoid the use of the frappe.db API in JS because of the permissions issues it presents.

@viralkansodiya viralkansodiya changed the base branch from version-14 to version-15 April 29, 2024 11:53
@viralkansodiya viralkansodiya changed the base branch from version-15 to version-14 April 29, 2024 11:53
@viralkansodiya
Copy link
Contributor Author

@agritheory I am closing this PR and open a new one for V15
#237

@viralkansodiya viralkansodiya deleted the ACHROLE branch June 20, 2024 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants