Revert "fix: prevent manual typing of restricted values in Link fields"

This commit is contained in:
Ejaaz Khan 2025-10-14 15:29:01 +05:30 committed by GitHub
parent c5cb8f6354
commit b2d4a6f18c
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