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:
parent
7d5e338e55
commit
38f112f4ac
1 changed files with 1 additions and 0 deletions
|
|
@ -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"):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue