diff --git a/src/db/models/organization.rs b/src/db/models/organization.rs index 50d46064..1eeb04d2 100644 --- a/src/db/models/organization.rs +++ b/src/db/models/organization.rs @@ -90,11 +90,11 @@ impl PartialOrd for UserOrgType { } fn gt(&self, other: &i32) -> bool { - !matches!(self.partial_cmp(other), Some(Ordering::Less) | Some(Ordering::Equal)) + matches!(self.partial_cmp(other), Some(Ordering::Greater)) } fn ge(&self, other: &i32) -> bool { - !matches!(self.partial_cmp(other), Some(Ordering::Less)) + matches!(self.partial_cmp(other), Some(Ordering::Greater) | Some(Ordering::Equal)) } }