You've already forked AstralRinth
forked from didirus/AstralRinth
Fix incorrect response to invalid input on bulk edit route (#579)
This commit is contained in:
@@ -1282,7 +1282,10 @@ pub async fn projects_edit(
|
|||||||
)));
|
)));
|
||||||
}
|
}
|
||||||
} else if project.inner.status.is_hidden() {
|
} else if project.inner.status.is_hidden() {
|
||||||
return Ok(HttpResponse::NotFound().body(""));
|
return Err(ApiError::InvalidInput(format!(
|
||||||
|
"Project {} not found",
|
||||||
|
ProjectId(project.inner.id.0 as u64)
|
||||||
|
)));
|
||||||
} else {
|
} else {
|
||||||
return Err(ApiError::CustomAuthentication(format!(
|
return Err(ApiError::CustomAuthentication(format!(
|
||||||
"You are not a member of project {}!",
|
"You are not a member of project {}!",
|
||||||
|
|||||||
Reference in New Issue
Block a user