fix: self not member
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/pr/build-and-publish Pipeline was successful

This commit is contained in:
BAaboe 2025-07-23 02:03:06 +02:00
parent e074ca89f9
commit ac5ca90974

View file

@ -188,7 +188,7 @@ impl Member {
}
pub async fn delete(self, conn: &mut Conn) -> Result<(), Error> {
if member.is_owner {
if self.is_owner {
return Err(Error::Forbidden("Can not kick owner".to_string()))
}
delete(guild_members::table)