MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / is_user_callable

Function is_user_callable

crates/openshell-server/src/auth/method_authz.rs:120–125  ·  view source on GitHub ↗
(method: &str)

Source from the content-addressed store, hash-verified

118/// RPCs, but it remains as defense-in-depth.
119#[must_use]
120pub fn is_user_callable(method: &str) -> bool {
121 match lookup(method).map(|m| m.mode) {
122 Some(AuthMode::Sandbox | AuthMode::Unauthenticated) => false,
123 Some(AuthMode::Bearer | AuthMode::Dual) | None => true,
124 }
125}
126
127#[cfg(test)]
128mod tests {

Callers 1

callMethod · 0.85

Calls 1

lookupFunction · 0.85

Tested by

no test coverage detected