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

Function user_can_access_user_methods

crates/openshell-server/src/auth/authz.rs:172–180  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

170
171 #[test]
172 fn user_can_access_user_methods() {
173 let id = identity_with_roles(&["openshell-user"]);
174 let policy = default_policy();
175 assert!(
176 policy
177 .check(&id, "/openshell.v1.OpenShell/ListSandboxes")
178 .is_ok()
179 );
180 }
181
182 #[test]
183 fn user_cannot_access_admin_methods() {

Callers

nothing calls this directly

Calls 2

identity_with_rolesFunction · 0.85
default_policyFunction · 0.85

Tested by

no test coverage detected