fix: include workspaces without domain restriction

This commit is contained in:
barredterra 2024-01-10 13:13:19 +01:00
parent f7413d74fb
commit 89582dc73d

View file

@ -417,8 +417,11 @@ def get_workspace_sidebar_items():
blocked_modules = frappe.get_doc("User", frappe.session.user).get_blocked_modules()
blocked_modules.append("Dummy Module")
# adding None to allowed_domains to include pages without domain restriction
allowed_domains = [None] + frappe.get_active_domains()
filters = {
"restrict_to_domain": ["in", frappe.get_active_domains()],
"restrict_to_domain": ["in", allowed_domains],
"module": ["not in", blocked_modules],
}