Skip to content

Commit

Permalink
🐛 fix filtering when project shared with product groups (ITISFoundati…
Browse files Browse the repository at this point in the history
…on#6379)

Co-authored-by: Pedro Crespo-Valero <[email protected]>
Co-authored-by: Dustin Kaiser <[email protected]>
  • Loading branch information
3 people authored Sep 17, 2024
1 parent 4ed5831 commit 9b6df59
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,7 @@ async def _list_user_groups(
result = await conn.execute(
select(groups)
.select_from(groups.join(user_to_groups))
.where(
(user_to_groups.c.uid == user_id)
& (user_to_groups.c.access_rights["read"].astext == "true")
)
.where(user_to_groups.c.uid == user_id)
)
user_groups = await result.fetchall() or []
return user_groups
Expand Down

0 comments on commit 9b6df59

Please sign in to comment.