diff options
Diffstat (limited to 'src/remake/api.rs')
| -rw-r--r-- | src/remake/api.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/remake/api.rs b/src/remake/api.rs index d3df908..1da0539 100644 --- a/src/remake/api.rs +++ b/src/remake/api.rs @@ -383,22 +383,24 @@ async fn start_kind<H: Host>( // A strict remake: proposed only with a manifest this node would vote for. if kind.name() == "strict" { - let swarm = host + let (swarm, strict) = host .read_doc(|doc| { - crate::document::store::read_path( + let swarm = crate::document::store::read_path( doc, &crate::document::meta::path(&[crate::document::meta::SWARM]), ) .ok() .flatten() .and_then(|swarm| swarm.as_str().map(str::to_owned)) - .unwrap_or_default() + .unwrap_or_default(); + (swarm, crate::access::policy::of(doc).strict()) }) .await; if let Err(why) = super::vote::strict_taken( &host, prepared.content.as_deref(), &swarm, + strict, &EpochRecord::from(host.current_epoch()), request.base_heads.as_deref(), ) { |
