mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-12-22 03:33:48 +01:00
set prodable interface when in use
This commit is contained in:
parent
3e72d915e6
commit
8c0542fdec
@ -54,9 +54,6 @@ impl Machine {
|
|||||||
}
|
}
|
||||||
{
|
{
|
||||||
builder.set_use(capnp_rpc::new_client(self.clone()));
|
builder.set_use(capnp_rpc::new_client(self.clone()));
|
||||||
if self.resource.get_description().prodable {
|
|
||||||
builder.set_prodable(capnp_rpc::new_client(self.clone()));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if self.session.has_manage(&self.resource) {
|
if self.session.has_manage(&self.resource) {
|
||||||
@ -72,6 +69,9 @@ impl Machine {
|
|||||||
ArchivedStatus::InUse(owner) => {
|
ArchivedStatus::InUse(owner) => {
|
||||||
if owner == &user {
|
if owner == &user {
|
||||||
builder.set_inuse(capnp_rpc::new_client(self.clone()));
|
builder.set_inuse(capnp_rpc::new_client(self.clone()));
|
||||||
|
if self.resource.get_description().prodable {
|
||||||
|
builder.set_prodable(capnp_rpc::new_client(self.clone()));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
MachineState::InUse
|
MachineState::InUse
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user