diff --git a/fastapi/dependencies/models.py b/fastapi/dependencies/models.py index 0522b8841d..f9424039f6 100644 --- a/fastapi/dependencies/models.py +++ b/fastapi/dependencies/models.py @@ -68,7 +68,7 @@ class Dependant: def _uses_scopes(self) -> bool: if self.own_oauth_scopes: return True - if self.security_scopes_param_name is not None: + if self.security_scopes_param_names: return True for sub_dep in self.dependencies: if sub_dep._uses_scopes: