MCPcopy Create free account
hub / github.com/AI45Lab/Code / deny

Method deny

core/src/permissions/policy.rs:73–76  ·  view source on GitHub ↗

Add a deny rule

(mut self, rule: &str)

Source from the content-addressed store, hash-verified

71
72 /// Add a deny rule
73 pub fn deny(mut self, rule: &str) -> Self {
74 self.deny.push(PermissionRule::new(rule));
75 self
76 }
77
78 /// Add an allow rule
79 pub fn allow(mut self, rule: &str) -> Self {

Callers 15

add_denied_toolsFunction · 0.80
explore_permissionsFunction · 0.80
general_permissionsFunction · 0.80
test_policy_builderFunction · 0.80
test_policy_check_denyFunction · 0.80
test_policy_disabledFunction · 0.80
test_policy_is_deniedFunction · 0.80

Calls

no outgoing calls