fix: Apply permlevel for update_doc endpoint in v2 API (#32135)

* fix: Only Return Allowed Fields in API Response

Apply Read Permission to the returned fields of API v2
This commit is contained in:
petnd 2025-04-16 13:02:14 +02:00 committed by GitHub
parent 7d5e338e55
commit 38f112f4ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -110,6 +110,7 @@ def update_doc(doctype: str, name: str):
data.pop("flags", None)
doc.update(data)
doc.save()
doc.apply_fieldlevel_read_permissions()
# check for child table doctype
if doc.get("parenttype"):