Merge pull request #38608 from kaulith/fix/workspace-sidebar-empty-module-visibility
This commit is contained in:
commit
465aa38cba
1 changed files with 2 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue