Check if this scope allows access to a view.
(&self, view_name: &str)
| 356 | |
| 357 | /// Check if this scope allows access to a view. |
| 358 | pub fn allows_view(&self, view_name: &str) -> bool { |
| 359 | matches_any(&self.views, view_name) |
| 360 | } |
| 361 | |
| 362 | /// Check a permission against a resource in one call. |
| 363 | pub fn allows(&self, permission: DelegationPermission, resource: &ResourceRef<'_>) -> bool { |