From 38b4c379b3b31738ca7eb00c7d4d596d4a1481bc Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Mon, 30 Dec 2024 19:06:14 +0530 Subject: [PATCH] fix: allow read permission for crm settings --- crm/fcrm/doctype/fcrm_settings/fcrm_settings.json | 9 ++++++++- frontend/src/components/Settings/Settings.vue | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/crm/fcrm/doctype/fcrm_settings/fcrm_settings.json b/crm/fcrm/doctype/fcrm_settings/fcrm_settings.json index 603c806b4..c4a0f4349 100644 --- a/crm/fcrm/doctype/fcrm_settings/fcrm_settings.json +++ b/crm/fcrm/doctype/fcrm_settings/fcrm_settings.json @@ -61,7 +61,7 @@ "index_web_pages_for_search": 1, "issingle": 1, "links": [], - "modified": "2024-12-27 22:17:52.337109", + "modified": "2024-12-30 19:03:51.898913", "modified_by": "Administrator", "module": "FCRM", "name": "FCRM Settings", @@ -76,6 +76,13 @@ "role": "System Manager", "share": 1, "write": 1 + }, + { + "email": 1, + "print": 1, + "read": 1, + "role": "All", + "share": 1 } ], "sort_field": "creation", diff --git a/frontend/src/components/Settings/Settings.vue b/frontend/src/components/Settings/Settings.vue index 16a646d55..6018ad4ea 100644 --- a/frontend/src/components/Settings/Settings.vue +++ b/frontend/src/components/Settings/Settings.vue @@ -121,6 +121,7 @@ const tabs = computed(() => { component: markRaw(ERPNextSettings), }, ], + condition: () => isManager(), }, ]