pub async fn load_user_profile(
db: &Db,
user_id: i64,
) -> Result<Option<UserProfile>>Expand description
Load a user by id for display purposes. Returns Ok(None) for a
missing id (callers map to 404). Returns Err only on a real DB
failure or a corrupted role string.
Phase 10/a — companion to UserProfile. Reads the columns added
by migrate_user_schema (full_name, locale, timezone) plus the
existing demo flags. Never reads password_hash.