diff --git a/frappe/core/doctype/doctype/doctype.py b/frappe/core/doctype/doctype/doctype.py index 3c3008ecd6..73c9fda5dc 100644 --- a/frappe/core/doctype/doctype/doctype.py +++ b/frappe/core/doctype/doctype/doctype.py @@ -204,7 +204,6 @@ class DocType(Document): self.validate_document_type() validate_fields(self) self.check_indexing_for_dashboard_links() - if not self.istable: validate_permissions(self) diff --git a/frappe/public/js/frappe/utils/utils.js b/frappe/public/js/frappe/utils/utils.js index 4531304a47..18f93ab187 100644 --- a/frappe/public/js/frappe/utils/utils.js +++ b/frappe/public/js/frappe/utils/utils.js @@ -480,6 +480,7 @@ Object.assign(frappe.utils, { var style = default_style || "default"; var colour = "gray"; if (text) { + text = cstr(text); if (has_words(["Pending", "Review", "Medium", "Not Approved"], text)) { style = "warning"; colour = "orange";