Fix user limiting filter condition
All checks were successful
ci/woodpecker/push/docker Pipeline was successful

This commit is contained in:
Oliver Traber 2025-03-14 00:03:12 +00:00
parent e5c5e94989
commit 46b5040099
Signed by: Bluemedia
GPG key ID: C0674B105057136C
2 changed files with 4 additions and 4 deletions

View file

@ -42,7 +42,7 @@ async def get_id_token(
id_token = result.scalars().first()
if id_token == None:
raise HTTPException(status_code=404, detail="IdToken not found")
if token.role != Role.ADMINISTRATOR & id_token.owner_id != token.subject:
if token.role != Role.ADMINISTRATOR and id_token.owner_id != token.subject:
raise HTTPException(status_code=404, detail="IdToken not found")
return id_token