also build machine if user has read perm

This commit is contained in:
Kai Jan Kriegel 2022-04-24 20:10:06 +02:00
parent 846fb09433
commit 2c4b3c9cd0

View File

@ -87,7 +87,7 @@ impl Machine {
pub fn optional_build(session: SessionHandle, resource: Resource, builder: optional::Builder<machine::Owned>) {
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);
}