mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-30 07:08:24 +00:00
fix(crm): check write permission in edit_note
(cherry picked from commit eb49f51d29)
# Conflicts:
# erpnext/crm/utils.py
This commit is contained in:
@@ -255,7 +255,14 @@ class CRMNote(Document):
|
||||
notify_mentions(self.doctype, self.name, note)
|
||||
|
||||
@frappe.whitelist()
|
||||
<<<<<<< HEAD
|
||||
def edit_note(self, note, row_id):
|
||||
=======
|
||||
def edit_note(self, note: str, row_id: str):
|
||||
# db_update() skips the write check that save() does in add_note/delete_note
|
||||
self.check_permission("write")
|
||||
|
||||
>>>>>>> eb49f51 (fix(crm): check write permission in edit_note)
|
||||
for d in self.notes:
|
||||
if cstr(d.name) == row_id:
|
||||
d.note = note
|
||||
|
||||
Reference in New Issue
Block a user