mirror of
https://github.com/stoatchat/stoatchat.git
synced 2026-07-14 05:26:59 +00:00
@@ -21,7 +21,7 @@ pub async fn req(user: User, target: Ref, member: String) -> Result<EmptyRespons
|
||||
return Err(Error::InvalidOperation);
|
||||
}
|
||||
|
||||
if target.id == target.owner {
|
||||
if member.id.user == target.owner {
|
||||
return Err(Error::MissingPermission);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user