fix(telephony): disable sharing of voice call settings

(cherry picked from commit 405153dd5c)

# Conflicts:
#	erpnext/telephony/doctype/voice_call_settings/voice_call_settings.json
This commit is contained in:
Nabin Hait
2026-10-22 09:31:54 +00:00
committed by Mergify
parent 55f0d9a9e3
commit 049520d285
3 changed files with 8 additions and 3 deletions
@@ -23,6 +23,7 @@ def remove_shares():
def move_customised_rules():
frappe.db.set_value("Custom DocPerm", {"parent": DOCTYPE}, "share", 0)
mirror_rules({DOCTYPE: {"Desk User": DESK_USER_PTYPES}})
removed = False
for rule in get_role_rules(DOCTYPE, "All"):
@@ -60,6 +60,9 @@ class TestVoiceCallSettings(ERPNextTestSuite):
with as_user(make_fenced_user("voice-call-manager@example.com", ["System Manager"])):
self.assertIn(owner, frappe.get_list("Voice Call Settings", pluck="name"))
self.assertRaises(
frappe.PermissionError, frappe.share.add, "Voice Call Settings", owner, other_user
)
self.assertEqual(
frappe.client.get("Voice Call Settings", owner)["greeting_message"], "Owner changed"
)
@@ -53,11 +53,15 @@
],
"index_web_pages_for_search": 1,
"links": [],
<<<<<<< HEAD
<<<<<<< HEAD
"modified": "2020-12-14 18:49:34.600194",
=======
"modified": "2026-10-15 15:16:45.554169",
>>>>>>> 7c88594 (fix(telephony): scope voice call settings to their user)
=======
"modified": "2026-10-15 22:19:14.883211",
>>>>>>> 405153d (fix(telephony): disable sharing of voice call settings)
"modified_by": "Administrator",
"module": "Telephony",
"name": "Voice Call Settings",
@@ -82,7 +86,6 @@
"read": 1,
"report": 1,
"role": "System Manager",
"share": 1,
"write": 1
},
{
@@ -94,7 +97,6 @@
"read": 1,
"report": 1,
"role": "System Manager",
"share": 1,
"write": 1
},
{
@@ -106,7 +108,6 @@
"read": 1,
"report": 1,
"role": "System Manager",
"share": 1,
"write": 1
},
{