MCPcopy Create free account
hub / github.com/emwalker/digraph / service_account

Method service_account

backend/src/types.rs:479–488  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

477
478impl Viewer {
479 pub fn service_account() -> Self {
480 Self {
481 read_repo_ids: RepoIds(vec![]),
482 context_repo_id: RepoId::wiki(),
483 session_id: None,
484 super_user: true,
485 user_id: "".to_owned(),
486 write_repo_ids: RepoIds(vec![]),
487 }
488 }
489
490 pub fn ensure_can_read(&self, repo_id: RepoId) -> Result<()> {
491 if !self.can_read(repo_id) {

Callers

nothing calls this directly

Calls 1

RepoIdsClass · 0.85

Tested by

no test coverage detected