mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-11-25 16:17: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>) {
|
pub fn optional_build(session: SessionHandle, resource: Resource, builder: optional::Builder<machine::Owned>) {
|
||||||
let this = Self::new(session.clone(), resource.clone());
|
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();
|
let mut builder = builder.init_just();
|
||||||
this.build_into(builder);
|
this.build_into(builder);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user