diff --git a/lib/src/doc/event.rs b/lib/src/doc/event.rs index a981da69..e6556c21 100644 --- a/lib/src/doc/event.rs +++ b/lib/src/doc/event.rs @@ -23,6 +23,8 @@ impl<'a> Document<'a> { if !opt.force && !self.changed() { return Ok(()); } + // Don't run permissions + let opt = &opt.perms(false); // Loop through all event statements for ev in self.ev(opt, txn).await?.iter() { // Get the event action diff --git a/lib/src/doc/table.rs b/lib/src/doc/table.rs index 58cbc3ff..ef80a67b 100644 --- a/lib/src/doc/table.rs +++ b/lib/src/doc/table.rs @@ -44,6 +44,8 @@ impl<'a> Document<'a> { if !opt.force && !self.changed() { return Ok(()); } + // Don't run permissions + let opt = &opt.perms(false); // Get the record id let rid = self.id.as_ref().unwrap(); // Get the query action