aboutsummaryrefslogtreecommitdiffstats
path: root/src/state/host.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/state/host.rs')
-rw-r--r--src/state/host.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/state/host.rs b/src/state/host.rs
index 01cbaa2..7b2eb07 100644
--- a/src/state/host.rs
+++ b/src/state/host.rs
@@ -570,7 +570,6 @@ impl Host for AppState {
tokio::task::spawn_blocking(move || {
let result = {
let mut replica = state.doc.blocking_write();
- let policy = crate::access::policy::of(&replica.doc);
// Judged first (`access::screen`), whether this document has a policy
// yet or not.
let result = {
@@ -582,7 +581,7 @@ impl Host for AppState {
epoch_seq,
change.raw_bytes(),
&state.screening,
- policy.required().then_some(&mut replica.signatures),
+ Some(&mut replica.signatures),
&mut crate::document::PatchLog::inactive(),
)
.map(|_| ())