MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / is_active

Method is_active

nodedb/src/control/security/org/store.rs:169–171  ·  view source on GitHub ↗

Check if an org is active. Returns false if org doesn't exist.

(&self, org_id: &str)

Source from the content-addressed store, hash-verified

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> {

Callers 1

check_blacklistFunction · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected