Fix user limiting filter condition
All checks were successful
ci/woodpecker/push/docker Pipeline was successful
All checks were successful
ci/woodpecker/push/docker Pipeline was successful
This commit is contained in:
parent
e5c5e94989
commit
46b5040099
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue