changes for version 0.1.5 and release of version 0.1.5 #23
2 changed files with 5 additions and 2 deletions
fix /summary should be accessible to anonymous visitors
commit
ef90789da5
|
|
@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
|
||||
## [Unreleased]
|
||||
|
||||
### Fix
|
||||
- /summary should be accessible for anonymous visitors
|
||||
|
||||
## [0.1.4] (2022-05-25)
|
||||
|
||||
### Fix
|
||||
|
|
|
|||
|
|
@ -148,10 +148,10 @@ pub(crate) async fn summary(
|
|||
session: Session,
|
||||
offers: web::Data<JobOffers>,
|
||||
) -> Result<HttpResponse, actix_web::Error> {
|
||||
let user = auth::User::current(&session)?;
|
||||
let user = auth::User::current(&session).ok();
|
||||
let previews = {
|
||||
let guard = offers.get_offers().await;
|
||||
crate::job_offers::job_data(&req, guard, Some(&user))
|
||||
crate::job_offers::job_data(&req, guard, user.as_ref())
|
||||
};
|
||||
let data = json!(previews);
|
||||
Ok(HttpResponse::Ok()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue