diff --git a/bffhd/capnp/machine.rs b/bffhd/capnp/machine.rs index eb6b693..2447ccd 100644 --- a/bffhd/capnp/machine.rs +++ b/bffhd/capnp/machine.rs @@ -87,7 +87,7 @@ impl Machine { pub fn optional_build(session: SessionHandle, resource: Resource, builder: optional::Builder) { let this = Self::new(session.clone(), resource.clone()); - if this.resource.visible(&session) { + if this.resource.visible(&session) || session.has_read(&resource) { let mut builder = builder.init_just(); this.build_into(builder); }