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

Method allows_project

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

Check if this scope allows access to a project.

(&self, project: &str)

Source from the content-addressed store, hash-verified

351
352 /// Check if this scope allows access to a project.
353 pub fn allows_project(&self, project: &str) -> bool {
354 matches_any(&self.projects, project)
355 }
356
357 /// Check if this scope allows access to a view.
358 pub fn allows_view(&self, view_name: &str) -> bool {

Callers 2

check_permissionFunction · 0.80
allowsMethod · 0.80

Calls 1

matches_anyFunction · 0.85

Tested by

no test coverage detected