Censor user always gives lv3+ cred to censor
This commit is contained in:
parent
38de75b253
commit
788f1f7f21
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue