This commit is contained in:
matthias@matsewe.de
2024-06-25 13:20:55 +02:00
parent 6cd1064f1d
commit 78d964455c

View File

@@ -29,7 +29,7 @@ async def get_current_user(
email: str = request.headers.get("x-auth-request-email") # type: ignore
except (JWTError, ValidationError):
raise credentials_exception
scopes = scopes_db.get(email)
scopes = scopes_db.get(email, [])
for scope in security_scopes.scopes:
if scope not in scopes:
raise credentials_exception