From 072c15a88a33c0927ef935d60bfb374b95fcef82 Mon Sep 17 00:00:00 2001 From: sokumon Date: Thu, 13 Nov 2025 15:50:16 +0530 Subject: [PATCH] fix: restrict sidebar editing access --- frappe/public/js/frappe/ui/sidebar/sidebar_header.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frappe/public/js/frappe/ui/sidebar/sidebar_header.js b/frappe/public/js/frappe/ui/sidebar/sidebar_header.js index b24063d3d8..b715e78441 100644 --- a/frappe/public/js/frappe/ui/sidebar/sidebar_header.js +++ b/frappe/public/js/frappe/ui/sidebar/sidebar_header.js @@ -79,11 +79,16 @@ frappe.ui.SidebarHeader = class SidebarHeader { populate_dropdown_menu() { const me = this; + this.check_editing_access(); this.dropdown_items.forEach((d) => { me.add_app_item(d); }); } - + check_editing_access() { + if (!frappe.boot.workspaces.has_access) { + this.dropdown_items.splice(1, 1); + } + } add_app_item(item) { $(`