Add ValidationRule::allows_modification()
This commit is contained in:
parent
b38189beca
commit
0ad63d347b
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user