fix: permission for whitelist functions

This commit is contained in:
Rohit Waghchaure
2026-06-12 13:40:49 +05:30
parent 292bfa2a34
commit a64466561f
16 changed files with 26 additions and 15 deletions

View File

@@ -642,6 +642,8 @@ class TransactionDeletionRecord(Document):
@frappe.whitelist()
def start_deletion_tasks(self):
self.check_permission("write")
# This method is the entry point for the chain of events that follow
self.db_set("status", "Running")
self._set_deletion_cache()