From e88707a8d409bc248aee6f6cf88e347115a0a6fa Mon Sep 17 00:00:00 2001 From: Rucha Mahabal Date: Tue, 25 Jan 2022 11:42:18 +0530 Subject: [PATCH] fix(User Type): Select perms not updated for link fields in child table --- frappe/core/doctype/user_type/user_type.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/core/doctype/user_type/user_type.py b/frappe/core/doctype/user_type/user_type.py index 661ac932e7..626ab772b8 100644 --- a/frappe/core/doctype/user_type/user_type.py +++ b/frappe/core/doctype/user_type/user_type.py @@ -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: