mirror of
https://github.com/frappe/erpnext.git
synced 2026-10-29 22:57:42 +00:00
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:
@@ -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
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user