[fix] [minor] ignore permission while deleting event through code

This commit is contained in:
Nabin Hait 2013-09-19 11:02:24 +05:30
parent aa67e7ed29
commit ad6ce4ee11

View File

@ -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)