Check if a user (directly or via orgs) has a specific scope.
(&self, user_id: &str, org_ids: &[String], scope_name: &str)
| 286 | |
| 287 | /// Check if a user (directly or via orgs) has a specific scope. |
| 288 | pub fn has_scope(&self, user_id: &str, org_ids: &[String], scope_name: &str) -> bool { |
| 289 | self.effective_scopes(user_id, org_ids).contains(scope_name) |
| 290 | } |
| 291 | |
| 292 | /// List all grants, optionally filtered by scope name. |
| 293 | pub fn list(&self, scope_filter: Option<&str>) -> Vec<ScopeGrant> { |
nothing calls this directly
no test coverage detected