Fine tuned authorization header errors.
This commit is contained in:
@@ -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),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user