Check if this scope allows access to a workspace.
(&self, workspace: &str)
| 346 | |
| 347 | /// Check if this scope allows access to a workspace. |
| 348 | pub fn allows_workspace(&self, workspace: &str) -> bool { |
| 349 | matches_any(&self.workspaces, workspace) |
| 350 | } |
| 351 | |
| 352 | /// Check if this scope allows access to a project. |
| 353 | pub fn allows_project(&self, project: &str) -> bool { |