From 2c4b3c9cd04353ca9306dae17c75791d527d2395 Mon Sep 17 00:00:00 2001 From: Kai Jan Kriegel Date: Sun, 24 Apr 2022 20:10:06 +0200 Subject: [PATCH] also build machine if user has read perm --- bffhd/capnp/machine.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }