mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-11-22 14:57:56 +01:00
Returns current user
This commit is contained in:
parent
ab3ac8f730
commit
200179f621
@ -63,17 +63,15 @@ impl info::Server for Machine {
|
|||||||
fn get_machine_info_extended(
|
fn get_machine_info_extended(
|
||||||
&mut self,
|
&mut self,
|
||||||
_: info::GetMachineInfoExtendedParams,
|
_: info::GetMachineInfoExtendedParams,
|
||||||
_results: info::GetMachineInfoExtendedResults,
|
mut results: info::GetMachineInfoExtendedResults,
|
||||||
) -> Promise<(), capnp::Error> {
|
) -> Promise<(), capnp::Error> {
|
||||||
/*if self.perms.manage {
|
if self.perms.manage {
|
||||||
let mut builder = results.get();
|
let mut builder = results.get();
|
||||||
let mut extinfo = builder.init_machine_info_extended();
|
let mut extinfo = builder.init_machine_info_extended();
|
||||||
let mut current = extinfo.init_current_user();
|
let mut current = extinfo.init_current_user();
|
||||||
// FIXME fill user
|
current.set_username(&self.userid.uid);
|
||||||
}
|
}
|
||||||
Promise::ok(())*/
|
Promise::ok(())
|
||||||
|
|
||||||
Promise::err(capnp::Error::unimplemented("Extended Infos are unavailable".to_string()))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_reservation_list(
|
fn get_reservation_list(
|
||||||
|
Loading…
Reference in New Issue
Block a user