fix: include workspaces without domain restriction
This commit is contained in:
parent
f7413d74fb
commit
89582dc73d
1 changed files with 4 additions and 1 deletions
|
|
@ -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],
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue