Check if an org is active. Returns false if org doesn't exist.
(&self, org_id: &str)
| 167 | |
| 168 | /// Check if an org is active. Returns false if org doesn't exist. |
| 169 | pub fn is_active(&self, org_id: &str) -> bool { |
| 170 | self.get(org_id).is_some_and(|o| o.status == "active") |
| 171 | } |
| 172 | |
| 173 | /// Set org status. Suspended org blocks all members. |
| 174 | pub fn set_status(&self, org_id: &str, status: &str) -> crate::Result<bool> { |