You've already forked AstralRinth
forked from didirus/AstralRinth
Fix unlisted showing (#873)
* Fix projects showing draft * fix build * run fmt
This commit is contained in:
@@ -69,7 +69,7 @@ pub async fn projects_list(
|
||||
|
||||
let projects: Vec<_> =
|
||||
crate::database::Project::get_many_ids(&project_data, &**pool, &redis).await?;
|
||||
let projects = filter_visible_projects(projects, &user, &pool).await?;
|
||||
let projects = filter_visible_projects(projects, &user, &pool, true).await?;
|
||||
Ok(HttpResponse::Ok().json(projects))
|
||||
} else {
|
||||
Err(ApiError::NotFound)
|
||||
|
||||
Reference in New Issue
Block a user