diff options
author | Dessalines <tyhou13@gmx.com> | 2020-07-01 08:23:59 -0400 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2020-07-01 08:23:59 -0400 |
commit | e0aaa3b16264808b21d71a80c5f7239d778815fb (patch) | |
tree | 01db68ab0b6357e29a2e21cd7ee7c72f98458298 | |
parent | 6d70067b1a1939dead07fa11ca913ded4f922d48 (diff) | |
parent | c239a5f0e5cc6c5f9fe243adbb79af49d4a0d6d4 (diff) |
Merge branch 'ban_user_bug'
-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()), }; |