Merge pull request #34393 from frappe/revert-34064-fix-link-field-permission-validation

Revert "fix: prevent manual typing of restricted values in Link fields"
This commit is contained in:
Ejaaz Khan 2025-10-14 16:25:49 +05:30 committed by GitHub
commit 39366c3934
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -437,14 +437,6 @@ def validate_link(doctype: str, docname: str, fields=None):
if not values.name:
return values
if not frappe.has_permission(doctype, "read", doc=values.name):
frappe.throw(
_("You do not have permission to access {0} {1}").format(
frappe.bold(doctype), frappe.bold(docname)
),
frappe.PermissionError,
)
if not fields:
frappe.local.response_headers.set("Cache-Control", "private,max-age=1800,stale-while-revalidate=7200")
return values