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

Method check_user

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

Check if a user ID is blacklisted. Returns the entry if blocked.

(&self, user_id: &str)

Source from the content-addressed store, hash-verified

167
168 /// Check if a user ID is blacklisted. Returns the entry if blocked.
169 pub fn check_user(&self, user_id: &str) -> Option<BlacklistEntry> {
170 let key = format!("user:{user_id}");
171 self.check(&key)
172 }
173
174 /// Check if an IP address is blacklisted. Returns the entry if blocked.
175 /// Also checks CIDR ranges via the IP blacklist module.

Callers 2

explain_permissionFunction · 0.80
check_blacklistFunction · 0.80

Calls 1

checkMethod · 0.45

Tested by

no test coverage detected