refactor: Split remote and deactivated users into their own columns

This commit is contained in:
Ginger committed 2026-07-02 16:24:07 -04:00
1 parent d4f6c053bc
commit 69163b5391
32 files changed
+391 -278

No files matched your search

+2 -4
View File
@@ -162,10 +162,8 @@ pub(crate) async fn require_active(
user_id: &UserId,
allow_locked: bool,
) -> Result<(), Response> {
if !services.users.is_active(user_id).await {
return Err(
WebError::Forbidden("Your account is deactivated.".to_owned()).into_response()
);
if let Err(err) = services.users.status(user_id).await.ensure_active() {
return Err(WebError::Forbidden(err.message()).into_response());
}
if !allow_locked