From 8ee8c2e9526bf77bd77658404975b8d08b34c0e0 Mon Sep 17 00:00:00 2001 From: Taha Yassine Kraiem Date: Wed, 24 Nov 2021 19:16:04 +0100 Subject: [PATCH] feat(api): EE include role_id in the list of members --- ee/api/chalicelib/core/users.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ee/api/chalicelib/core/users.py b/ee/api/chalicelib/core/users.py index d8cc2a136..63946282e 100644 --- a/ee/api/chalicelib/core/users.py +++ b/ee/api/chalicelib/core/users.py @@ -383,7 +383,8 @@ def get_members(tenant_id): DATE_PART('day',timezone('utc'::text, now()) \ - COALESCE(basic_authentication.invited_at,'2000-01-01'::timestamp ))>=1 AS expired_invitation, basic_authentication.password IS NOT NULL AS joined, - invitation_token + invitation_token, + role_id FROM public.users LEFT JOIN public.basic_authentication ON users.user_id=basic_authentication.user_id WHERE users.tenant_id = %(tenantId)s AND users.deleted_at IS NULL ORDER BY name, id""",