Censor user always gives lv3+ cred to censor

This commit is contained in:
Vecna 2024-05-26 21:56:46 -04:00
parent 38de75b253
commit 788f1f7f21
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ impl Censor {
// We only need one level 3+ credential per bridge. (This will
// change if we restrict positive reports to one per bridge per
// credential.)
if !self.has_lox_cred(fingerprint) && scalar_u32(&cred.trust_level).unwrap() >= 3 {
if scalar_u32(&cred.trust_level).unwrap() >= 3 {
// We want to clone the credential, but that's not allowed,
// so we're going to serialize it and then deserialize it.
let cloned_cred = bincode::deserialize(&bincode::serialize(&cred).unwrap()).unwrap();