Fix that part

This commit is contained in:
Nadja Reitzenstein 2023-02-23 14:21:49 +01:00
parent d196050fe0
commit bed59f4aaa
2 changed files with 7 additions and 6 deletions

View File

@ -54,6 +54,9 @@ impl Machine {
}
{
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) {
@ -69,9 +72,6 @@ impl Machine {
ArchivedStatus::InUse(owner) => {
if owner == &user {
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
}

View File

@ -135,7 +135,8 @@
manage = "lab.test.admin",
name = "Another",
read = "lab.test.read",
write = "lab.test.write"
write = "lab.test.write",
prodable = True
},
Yetmore = {
description = "Yet more test machines",
@ -232,6 +233,6 @@
init_connections = [] : List { machine : Text, initiator : Text },
--init_connections = [{ machine = "Testmachine", initiator = "Initiator" }]
spacename = "foospace",
instanceurl = "https://example.com"
spacename = Some "foospace",
instanceurl = Some "https://example.com"
}