From ad6ce4ee1169d92762dbcb758c2f8bedfc63e673 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 19 Sep 2013 11:02:24 +0530 Subject: [PATCH] [fix] [minor] ignore permission while deleting event through code --- utilities/transaction_base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utilities/transaction_base.py b/utilities/transaction_base.py index ea807c248e..2535db7ab5 100644 --- a/utilities/transaction_base.py +++ b/utilities/transaction_base.py @@ -243,7 +243,8 @@ class TransactionBase(StatusUpdater): 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)