diff options
Diffstat (limited to 'src/state/mod.rs')
| -rw-r--r-- | src/state/mod.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/state/mod.rs b/src/state/mod.rs index 049c9e6..294b446 100644 --- a/src/state/mod.rs +++ b/src/state/mod.rs @@ -542,7 +542,10 @@ impl AppState { if after != before && let [hash] = after[..] { - if state.sign_every == SignEvery::Change || sign.wanted(&replica.doc) { + if state.sign_every == SignEvery::Change + || sign.wanted(&replica.doc) + || crate::access::policy::of(&replica.doc).required() + { let replica = &mut *replica; replica.signatures.sign(&replica.doc, hash, key); } else { |
