[fix] [minor] ignore permission while deleting event through code
diff --git a/utilities/transaction_base.py b/utilities/transaction_base.py
index ea807c2..2535db7 100644
--- a/utilities/transaction_base.py
+++ b/utilities/transaction_base.py
@@ -243,7 +243,8 @@
def delete_events(self):
webnotes.delete_doc("Event", webnotes.conn.sql_list("""select name from `tabEvent`
- where ref_type=%s and ref_name=%s""", (self.doc.doctype, self.doc.name)))
+ where ref_type=%s and ref_name=%s""", (self.doc.doctype, self.doc.name)),
+ ignore_permissions=True)
def _add_calendar_event(self, opts):
opts = webnotes._dict(opts)