From d929d8cba2f304e195c1ffd449f847e5a7558107 Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Mon, 12 Apr 2021 14:04:08 +0530 Subject: [PATCH] fix: patch travis --- frappe/core/doctype/user_type/user_type.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frappe/core/doctype/user_type/user_type.py b/frappe/core/doctype/user_type/user_type.py index 5291651204..e9825c90af 100644 --- a/frappe/core/doctype/user_type/user_type.py +++ b/frappe/core/doctype/user_type/user_type.py @@ -121,10 +121,10 @@ class UserType(Document): self.prepare_select_perm_doctypes(doc, user_doctypes, select_doctypes) for child_table in doc.get_table_fields(): - if frappe.db.table_exists(child_table.options): + if (frappe.db.table_exists(child_table.options) + and not frappe.get_cached_value('DocType', child_table.options, 'istable')): child_doc = frappe.get_meta(child_table.options) - if not child_doc.istable: - self.prepare_select_perm_doctypes(child_doc, user_doctypes, select_doctypes) + self.prepare_select_perm_doctypes(child_doc, user_doctypes, select_doctypes) if select_doctypes: select_doctypes = set(select_doctypes)