fix: alllow everyone to make private workspaces

This commit is contained in:
sokumon 2026-02-02 12:36:32 +05:30
parent be4f4b6f5f
commit 5e77082f40
2 changed files with 14 additions and 1 deletions

View file

@ -72,7 +72,7 @@
"grid_page_length": 50,
"index_web_pages_for_search": 1,
"links": [],
"modified": "2026-01-10 22:12:40.504715",
"modified": "2026-02-02 12:35:38.009501",
"modified_by": "Administrator",
"module": "Desk",
"name": "Workspace Sidebar",
@ -90,6 +90,18 @@
"role": "System Manager",
"share": 1,
"write": 1
},
{
"create": 1,
"delete": 1,
"email": 1,
"export": 1,
"print": 1,
"read": 1,
"report": 1,
"role": "Desk User",
"share": 1,
"write": 1
}
],
"row_format": "Dynamic",

View file

@ -30,6 +30,7 @@ frappe.ui.Sidebar = class Sidebar {
this.add_standard_items();
this.sidebar_data = frappe.boot.workspace_sidebar_item[this.workspace_title];
this.workspace_sidebar_items = this.sidebar_data.items;
this.all_sidebar_items = frappe.boot.workspace_sidebar_item;
if (this.edit_mode) {
this.workspace_sidebar_items = this.editor.new_sidebar_items;
}