diff --git a/frappe/boot.py b/frappe/boot.py index b187e04047..7f013015c5 100644 --- a/frappe/boot.py +++ b/frappe/boot.py @@ -565,8 +565,9 @@ def get_sidebar_items(allowed_workspaces): sidebar_doc = sidebar if ( frappe.session.user == "Administrator" - or sidebar_doc.module in sidebar_doc.user.allow_modules or sidebar_title == "My Workspaces" + or not sidebar_doc.module + or sidebar_doc.module in sidebar_doc.user.allow_modules ): sidebar_items[sidebar_title.lower()] = { "label": sidebar_title,