Merge pull request #24245 from barredterra/ws-domain-restriction

This commit is contained in:
Raffael Meyer 2024-01-10 14:20:32 +01:00 committed by GitHub
commit 81d6bea82c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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],
}