fix: don't add fallback for child table (#24105)

This commit is contained in:
Ankush Menat 2024-01-03 17:48:06 +05:30 committed by GitHub
parent cc9679ac76
commit 04acd0bda4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -163,9 +163,6 @@ def get_doc_permissions(doc, user=None, ptype=None):
if not user:
user = frappe.session.user
if frappe.is_table(doc.doctype):
return {"read": 1, "write": 1}
meta = frappe.get_meta(doc.doctype)
def is_user_owner():