Merge pull request #55849 from rohitwaghchaure/fixed-permissions-for-whitelist-functions

fix: permission for whitelist functions
This commit is contained in:
rohitwaghchaure
2026-06-13 18:36:46 +05:30
committed by GitHub
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()