From c239a5f0e5cc6c5f9fe243adbb79af49d4a0d6d4 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 1 Jul 2020 08:22:41 -0400 Subject: [PATCH] Fixing ban user bug. Fixes #876 --- server/src/api/user.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/api/user.rs b/server/src/api/user.rs index 0b6458e7..8f09ea5f 100644 --- a/server/src/api/user.rs +++ b/server/src/api/user.rs @@ -710,7 +710,7 @@ impl Perform for Oper { return Err(APIError::err("not_an_admin").into()); } - match User_::ban_user(&conn, user_id, data.ban) { + match User_::ban_user(&conn, data.user_id, data.ban) { Ok(user) => user, Err(_e) => return Err(APIError::err("couldnt_update_user").into()), }; -- 2.44.1