(&self, repo_id: RepoId)
| 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() |