From 9b6df598927d364e0f60321a070d561548028068 Mon Sep 17 00:00:00 2001 From: matusdrobuliak66 <60785969+matusdrobuliak66@users.noreply.github.com> Date: Tue, 17 Sep 2024 18:15:45 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20filtering=20when=20project?= =?UTF-8?q?=20shared=20with=20product=20groups=20(#6379)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Pedro Crespo-Valero <32402063+pcrespov@users.noreply.github.com> Co-authored-by: Dustin Kaiser <8209087+mrnicegyu11@users.noreply.github.com> --- .../src/simcore_service_webserver/projects/_db_utils.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/services/web/server/src/simcore_service_webserver/projects/_db_utils.py b/services/web/server/src/simcore_service_webserver/projects/_db_utils.py index 14a0eae1306..42c62e8d6a2 100644 --- a/services/web/server/src/simcore_service_webserver/projects/_db_utils.py +++ b/services/web/server/src/simcore_service_webserver/projects/_db_utils.py @@ -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