Skip to content

fix: updated fix for the permission issue according to new structure (backport #4268)#4270

Merged
ljain112 merged 1 commit intoversion-15-hotfixfrom
mergify/bp/version-15-hotfix/pr-4268
Apr 30, 2026
Merged

fix: updated fix for the permission issue according to new structure (backport #4268)#4270
ljain112 merged 1 commit intoversion-15-hotfixfrom
mergify/bp/version-15-hotfix/pr-4268

Conversation

@mergify
Copy link
Copy Markdown
Contributor

@mergify mergify Bot commented Apr 30, 2026

Issue
When user makes a new, unsaved Supplier/Customer/Company and adds GSTIN to it, the system gives a DoesNotExistError error.


This is an automatic backport of pull request #4268 done by Mergify.

@greptile-apps
Copy link
Copy Markdown

greptile-apps Bot commented Apr 30, 2026

Confidence Score: 5/5

Safe to merge — minimal, targeted fix with no regressions introduced

Single-line change that correctly addresses the DoesNotExistError for unsaved documents. Doctype-level permission is still enforced, so there is no meaningful security regression. No P0/P1 findings.

No files require special attention

Important Files Changed

Filename Overview
india_compliance/gst_india/utils/init.py Removes doc=party from frappe.has_permission call in check_duplicate_party to fix DoesNotExistError when checking GSTIN/PAN on a new, unsaved party document

Reviews (1): Last reviewed commit: "fix: updated fix for the permission issu..." | Re-trigger Greptile

@codacy-production
Copy link
Copy Markdown

codacy-production Bot commented Apr 30, 2026

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity

Metric Results
Complexity 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@ljain112
Copy link
Copy Markdown
Member

@Mergifyio rebase

@mergify
Copy link
Copy Markdown
Contributor Author

mergify Bot commented Apr 30, 2026

rebase

✅ Branch has been successfully rebased

@ljain112 ljain112 force-pushed the mergify/bp/version-15-hotfix/pr-4268 branch from 5c05b97 to 5bdba15 Compare April 30, 2026 14:13
@ljain112 ljain112 enabled auto-merge April 30, 2026 14:14
@ljain112 ljain112 merged commit b0ca19a into version-15-hotfix Apr 30, 2026
14 checks passed
@ljain112 ljain112 deleted the mergify/bp/version-15-hotfix/pr-4268 branch April 30, 2026 14:24
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