diff options
author | Dessalines <tyhou13@gmx.com> | 2020-07-01 08:22:41 -0400 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2020-07-01 08:22:41 -0400 |
commit | c239a5f0e5cc6c5f9fe243adbb79af49d4a0d6d4 (patch) | |
tree | be728ab7bfc8a7ebe5a84e8f394f330ce672a3ce /server/src/api/user.rs | |
parent | eded51aab67863aed7f7db7641b759eaf35e3737 (diff) |
Fixing ban user bug. Fixes #876
Diffstat (limited to 'server/src/api/user.rs')
-rw-r--r-- | server/src/api/user.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<BanUser> { 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()), }; |