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

Method get

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

Get an organization by ID.

(&self, org_id: &str)

Source from the content-addressed store, hash-verified

161
162 /// Get an organization by ID.
163 pub fn get(&self, org_id: &str) -> Option<OrgRecord> {
164 let orgs = self.orgs.read().unwrap_or_else(|p| p.into_inner());
165 orgs.get(org_id).cloned()
166 }
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 {

Callers 15

check_jwt_statusMethod · 0.45
checkMethod · 0.45
read_policiesMethod · 0.45
write_policiesMethod · 0.45
all_policiesMethod · 0.45
policy_existsMethod · 0.45
is_ownerMethod · 0.45
get_ownerMethod · 0.45
is_activeMethod · 0.45
ensure_orgMethod · 0.45
create_and_get_orgFunction · 0.45
check_lockoutMethod · 0.45

Calls 1

readMethod · 0.45

Tested by 3

create_and_get_orgFunction · 0.36
lockout_ip_roundtripFunction · 0.36
login_rate_limit_windowFunction · 0.36