Fine tuned authorization header errors.

This commit is contained in:
2026-10-09 18:03:54 +02:00
parent 1f6de34e5b
commit dbf6c3d9f5
5 changed files with 129 additions and 29 deletions
+1 -1
View File
@@ -161,6 +161,6 @@ async fn ensure_app_ownership(
) -> Result<(), AppError> {
match repository::user_apps::find_owner_by_id(&mut *connection, app_id).await? {
Some(owner) if owner == user_id => Ok(()),
Some(_) | None => Err(AppError::NotFound).into(),
Some(_) | None => Err(AppError::NotFound),
}
}