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

Method allows_view

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

Check if this scope allows access to a view.

(&self, view_name: &str)

Source from the content-addressed store, hash-verified

356
357 /// Check if this scope allows access to a view.
358 pub fn allows_view(&self, view_name: &str) -> bool {
359 matches_any(&self.views, view_name)
360 }
361
362 /// Check a permission against a resource in one call.
363 pub fn allows(&self, permission: DelegationPermission, resource: &ResourceRef<'_>) -> bool {

Callers 1

allowsMethod · 0.80

Calls 1

matches_anyFunction · 0.85

Tested by

no test coverage detected