mirror of https://github.com/tiangolo/fastapi.git
Fix condition
This commit is contained in:
parent
eada7d618f
commit
e16f68f251
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue