mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-23 04:41:19 +00:00
Fixing ban user bug. Fixes #876
This commit is contained in:
parent
eded51aab6
commit
c239a5f0e5
1 changed files with 1 additions and 1 deletions
|
@ -710,7 +710,7 @@ impl Perform for Oper<BanUser> {
|
||||||
return Err(APIError::err("not_an_admin").into());
|
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,
|
Ok(user) => user,
|
||||||
Err(_e) => return Err(APIError::err("couldnt_update_user").into()),
|
Err(_e) => return Err(APIError::err("couldnt_update_user").into()),
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue