[fix] [minor] ignore permission while deleting event through code
This commit is contained in:
parent
aa67e7ed29
commit
ad6ce4ee11
@ -243,7 +243,8 @@ class TransactionBase(StatusUpdater):
|
|||||||
|
|
||||||
def delete_events(self):
|
def delete_events(self):
|
||||||
webnotes.delete_doc("Event", webnotes.conn.sql_list("""select name from `tabEvent`
|
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):
|
def _add_calendar_event(self, opts):
|
||||||
opts = webnotes._dict(opts)
|
opts = webnotes._dict(opts)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user