mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-11-23 15:17:57 +01:00
Fix that part
This commit is contained in:
parent
d196050fe0
commit
bed59f4aaa
@ -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
|
||||
}
|
||||
|
@ -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"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user