strip session-added comments
This commit is contained in:
@@ -146,7 +146,6 @@ where
|
||||
)
|
||||
.await
|
||||
.map_err(ApiError)?
|
||||
// `None` only if the account vanished between `ensure_active` and here.
|
||||
.ok_or_else(|| ApiError(DomainError::NotFound("user not found".into())))?;
|
||||
if is_admin {
|
||||
Ok(AdminApiUser(user_id))
|
||||
@@ -175,7 +174,6 @@ where
|
||||
)
|
||||
.await
|
||||
.map_err(|_| StatusCode::INTERNAL_SERVER_ERROR.into_response())?
|
||||
// `None` only if the account vanished between `ensure_active` and here.
|
||||
.ok_or_else(|| StatusCode::UNAUTHORIZED.into_response())?;
|
||||
if is_admin {
|
||||
Ok(AdminUser(user_id))
|
||||
|
||||
Reference in New Issue
Block a user