Prevent banned users from using call commands

This commit is contained in:
2025-08-14 23:56:55 -03:00
parent fb7eba11bb
commit 7eb2a99b69
3 changed files with 24 additions and 8 deletions
+1 -3
View File
@@ -39,9 +39,7 @@ impl<T: Send + Sync + 'static> OnMessageHandler<T> for CommandRunner {
.await
.inspect_err(|e| log::error!("Permission check failed: {e}"))?
{
return Err(
format!("The check for permission {permission:?} failed").into()
);
return Ok(());
}
}