From de7cf372e73fa245c9e85cf241a118da05a21525 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Tue, 17 Jun 2025 23:22:44 +0530 Subject: [PATCH] fix: only show users to manager (cherry picked from commit 22856351fd9613f654df319f1714aafc5c4f626f) --- crm/fcrm/doctype/crm_user/crm_user.json | 14 +++++++++++++- frontend/src/components/Settings/Settings.vue | 1 + 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/crm/fcrm/doctype/crm_user/crm_user.json b/crm/fcrm/doctype/crm_user/crm_user.json index 5ba7f5e0..1f7f119c 100644 --- a/crm/fcrm/doctype/crm_user/crm_user.json +++ b/crm/fcrm/doctype/crm_user/crm_user.json @@ -72,7 +72,7 @@ "image_field": "image", "index_web_pages_for_search": 1, "links": [], - "modified": "2025-06-17 12:08:16.616216", + "modified": "2025-06-17 23:17:19.996659", "modified_by": "Administrator", "module": "FCRM", "name": "CRM User", @@ -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": "Sales Manager", + "share": 1, + "write": 1 } ], "row_format": "Dynamic", diff --git a/frontend/src/components/Settings/Settings.vue b/frontend/src/components/Settings/Settings.vue index a46c29bc..612e67a2 100644 --- a/frontend/src/components/Settings/Settings.vue +++ b/frontend/src/components/Settings/Settings.vue @@ -93,6 +93,7 @@ const tabs = computed(() => { label: __('Users'), icon: 'user', component: markRaw(Users), + condition: () => isManager(), }, { label: __('Invite User'),