Check if this scope allows access to a repository.
(&self, repo_path: &str)
| 245 | |
| 246 | /// Check if this scope allows access to a repository. |
| 247 | pub fn allows_repository(&self, repo_path: &str) -> bool { |
| 248 | if self.repository_patterns.is_empty() { |
| 249 | return true; |
| 250 | } |
| 251 | |
| 252 | self.repository_patterns |
| 253 | .iter() |
| 254 | .any(|pattern| Self::matches_pattern(pattern, repo_path)) |
| 255 | } |
| 256 | |
| 257 | /// Check if this scope allows access to a view. |
| 258 | pub fn allows_view(&self, view_name: &str) -> bool { |