This commit is contained in:
Alex 2022-07-13 15:26:55 +02:00
parent c703e3e2b8
commit 956a92377e
Signed by: lx
GPG key ID: 0E496D15096376BE

View file

@ -49,8 +49,9 @@ impl State {
State::Authenticated(u) | State::Selected(u, _) | State::Examined(u, _), State::Authenticated(u) | State::Selected(u, _) | State::Examined(u, _),
Transition::Examine(m), Transition::Examine(m),
) => Ok(State::Examined(u, m)), ) => Ok(State::Examined(u, m)),
(State::Selected(u, _), Transition::Unselect) => Ok(State::Authenticated(u)), (State::Selected(u, _) | State::Examined(u, _), Transition::Unselect) => {
(State::Examined(u, _), Transition::Unselect) => Ok(State::Authenticated(u)), Ok(State::Authenticated(u))
}
(_, Transition::Logout) => Ok(State::Logout), (_, Transition::Logout) => Ok(State::Logout),
_ => Err(Error::ForbiddenTransition), _ => Err(Error::ForbiddenTransition),
} }