fix: restrict fields according to permlevel after update as well

This commit is contained in:
sokumon 2025-06-17 20:17:50 +05:30
parent 7d8e70e1ad
commit b79c5476a7

View file

@ -79,7 +79,7 @@ def send_updated_docs(doc):
from .load import get_docinfo
get_docinfo(doc)
doc.apply_fieldlevel_read_permissions()
d = doc.as_dict()
if hasattr(doc, "localname"):
d["localname"] = doc.localname