Merge branch 'master' into reports-fixes

This commit is contained in:
Geometrically
2023-05-25 12:36:13 -07:00
committed by GitHub
2 changed files with 10 additions and 2 deletions

View File

@@ -1282,7 +1282,10 @@ pub async fn projects_edit(
)));
}
} 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 {
return Err(ApiError::CustomAuthentication(format!(
"You are not a member of project {}!",