fix(User Type): Select perms not updated for link fields in child table

This commit is contained in:
Rucha Mahabal 2022-01-25 11:42:18 +05:30
parent d49199876a
commit e88707a8d4

View file

@ -121,7 +121,7 @@ class UserType(Document):
for child_table in doc.get_table_fields():
child_doc = frappe.get_meta(child_table.options)
if not child_doc.istable:
if child_doc:
self.prepare_select_perm_doctypes(child_doc, user_doctypes, select_doctypes)
if select_doctypes: