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

Method has_defined_permissions

core/src/subagent.rs:491–493  ·  view source on GitHub ↗

Whether this definition has non-empty permission rules.

(&self)

Source from the content-addressed store, hash-verified

489
490 /// Whether this definition has non-empty permission rules.
491 pub fn has_defined_permissions(&self) -> bool {
492 !self.permissions.allow.is_empty() || !self.permissions.deny.is_empty()
493 }
494
495 /// Apply this definition's declared configuration to a mutable AgentConfig.
496 ///

Callers 1

apply_toMethod · 0.80

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected