From db8245a117f21535f3e9ddfe1daf98d7590281e6 Mon Sep 17 00:00:00 2001 From: Mohamed Abdel Wedoud Date: Wed, 14 Feb 2024 18:27:57 +0100 Subject: [PATCH] fix(permission-db): get the group ids from `user.groups` --- antarest/study/repository.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/antarest/study/repository.py b/antarest/study/repository.py index d1331941ac..c61a6c7320 100644 --- a/antarest/study/repository.py +++ b/antarest/study/repository.py @@ -67,7 +67,7 @@ def build_query_user_from_params(params: t.Union[RequestParameters, JWTUser]) -> return QueryUser( is_admin=user.is_site_admin() or user.is_admin_token(), user_id=user.id, - user_groups=user.groups, + user_groups=[group.id for group in user.groups], ) else: return QueryUser()