chore: improve docstring

This commit is contained in:
Sagar Vora 2025-12-30 13:25:13 +05:30
parent 9fd5106ad1
commit c9147fb840

View file

@ -1456,7 +1456,7 @@ class Engine:
# no role permissions, apply only share permissions
shared_docs = frappe.share.get_shared(doctype, self.user)
if not shared_docs:
# this should NEVER happen, but being defensive
# no permissions at all
self._raise_permission_error(doctype=doctype)
return table.name.isin(shared_docs)