mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-11-24 23:57:57 +01:00
Pointerwise moving is even easier
This commit is contained in:
parent
d29b0c207d
commit
e678e67d32
@ -191,13 +191,13 @@ impl authentication_system::Server for Auth {
|
|||||||
|
|
||||||
let perms = pry!(self.access.collect_permrules(&user.data)
|
let perms = pry!(self.access.collect_permrules(&user.data)
|
||||||
.map_err(|e| capnp::Error::failed(format!("AccessDB lookup failed: {}", e))));
|
.map_err(|e| capnp::Error::failed(format!("AccessDB lookup failed: {}", e))));
|
||||||
self.session.replace(Session::new(
|
self.session.replace(Some(Session::new(
|
||||||
self.log.new(o!()),
|
self.log.new(o!()),
|
||||||
user.id,
|
user.id,
|
||||||
"".to_string(),
|
"".to_string(),
|
||||||
user.data.roles.into_boxed_slice(),
|
user.data.roles.into_boxed_slice(),
|
||||||
perms.into_boxed_slice()
|
perms.into_boxed_slice()
|
||||||
));
|
)));
|
||||||
|
|
||||||
let mut outcome = pry!(res.get().get_response()).init_outcome();
|
let mut outcome = pry!(res.get().get_response()).init_outcome();
|
||||||
outcome.reborrow().set_result(Resres::Successful);
|
outcome.reborrow().set_result(Resres::Successful);
|
||||||
|
Loading…
Reference in New Issue
Block a user