fix: show settings button only to workspace manager
This commit is contained in:
parent
056d8e0368
commit
6f1e3e1a91
1 changed files with 1 additions and 1 deletions
|
|
@ -448,7 +448,7 @@ frappe.views.Workspace = class Workspace {
|
|||
frappe.show_alert({ message: __("Customizations Discarded"), indicator: "info" });
|
||||
});
|
||||
|
||||
if (page.name && frappe.perm.has_perm("Workspace", 0, "read")) {
|
||||
if (page.name && this.has_access) {
|
||||
this.page.add_inner_button(__("Settings"), () => {
|
||||
frappe.set_route(`workspace/${page.name}`);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue