MCPcopy Index your code
hub / github.com/emwalker/digraph / can_update

Method can_update

backend/src/types.rs:519–524  ·  view source on GitHub ↗
(&self, repo_id: RepoId)

Source from the content-addressed store, hash-verified

517 }
518
519 pub fn can_update(&self, repo_id: RepoId) -> bool {
520 if self.super_user {
521 return true;
522 }
523 self.write_repo_ids.include(repo_id)
524 }
525
526 pub fn is_guest(&self) -> bool {
527 self.session_id.is_none()

Callers

nothing calls this directly

Calls 1

includeMethod · 0.80

Tested by

no test coverage detected