Check if this scope has a specific permission.
(&self, permission: DelegationPermission)
| 240 | |
| 241 | /// Check if this scope has a specific permission. |
| 242 | pub fn has_permission(&self, permission: DelegationPermission) -> bool { |
| 243 | self.permissions.iter().any(|p| p.implies(&permission)) |
| 244 | } |
| 245 | |
| 246 | /// Check if this scope allows access to a repository. |
| 247 | pub fn allows_repository(&self, repo_path: &str) -> bool { |