Add ValidationRule::allows_modification()

This commit is contained in:
Sosthene 2024-11-29 09:10:54 +01:00
parent b38189beca
commit 0ad63d347b

View File

@ -310,6 +310,10 @@ impl ValidationRule {
Ok(res) Ok(res)
} }
pub fn allows_modification(&self) -> bool {
self.quorum > 0.0 && self.min_sig_member > 0.0
}
pub fn is_satisfied( pub fn is_satisfied(
&self, &self,
field: &str, field: &str,