fn is_account_strict(req: &Request<Config>) -> bool {
    let session = match req.extensions().get::<Session>() {
        Some(s) => s,
        None => return false
    };

    match req.param("account_id") {
        Some(id) => id.to_string() == session.id,
        None => false
    }
}
/**
 * Return true if the session user id is matching the param user_id
 */
Return true if the session user id is matching the param user_id
Return true if the session user id is matching the param user_id
fn is_account_strict(req: &Request<Config>) -> bool {
    let session = match req.extensions().get::<Session>() {
        Some(s) => s,
        None => return false
    };
    match req.param("account_id") {
        Some(id) => id.to_string() == session.id,
        None => false
    }
}
fn is_account_strict ( req : & Request < Config > ) -> bool { let session = match req . extensions ( ) . get :: < Session > ( ) { Some ( s ) => s , None => return false } ; match req . param ( " " ) { Some ( id ) => id . to_string ( ) == session . id , None => false } }
Return true if the session user id is matching the param user_id
Return true if the session user id is matching the param user_id
req
&Request<Config>