fix: remove check for bot account under group member fetch (#245)

This commit is contained in:
ToastXC
2023-05-22 01:34:27 +08:00
committed by GitHub
parent 3ef549537e
commit df8f588e15

View File

@@ -11,10 +11,6 @@ use rocket::serde::json::Json;
#[openapi(tag = "Groups")]
#[get("/<target>/members")]
pub async fn req(db: &Db, user: User, target: Ref) -> Result<Json<Vec<User>>> {
if user.bot.is_some() {
return Err(Error::IsBot);
}
let channel = target.as_channel(db).await?;
perms(&user)
.channel(&channel)