mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-11-22 06:47:56 +01:00
also build machine if user has read perm
This commit is contained in:
parent
846fb09433
commit
2c4b3c9cd0
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user