MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / has_permission

Method has_permission

atomic-identity/src/delegation.rs:326–328  ·  view source on GitHub ↗

Check if this scope has a specific permission.

(&self, permission: DelegationPermission)

Source from the content-addressed store, hash-verified

324
325 /// Check if this scope has a specific permission.
326 pub fn has_permission(&self, permission: DelegationPermission) -> bool {
327 self.permissions.iter().any(|p| p.implies(&permission))
328 }
329
330 /// Check if this scope is valid against a server URL.
331 ///

Callers 1

allowsMethod · 0.80

Calls 2

impliesMethod · 0.80
iterMethod · 0.45

Tested by

no test coverage detected