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

Method has_permission

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

Check if this scope has a specific permission.

(&self, permission: DelegationPermission)

Source from the content-addressed store, hash-verified

240
241 /// Check if this scope has a specific permission.
242 pub fn has_permission(&self, permission: DelegationPermission) -> bool {
243 self.permissions.iter().any(|p| p.implies(&permission))
244 }
245
246 /// Check if this scope allows access to a repository.
247 pub fn allows_repository(&self, repo_path: &str) -> bool {

Callers 1

allowsMethod · 0.80

Calls 2

impliesMethod · 0.80
iterMethod · 0.45

Tested by

no test coverage detected