From 7d839584401a26637cc13ae24f5ed04b812e3d73 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Sat, 12 Sep 2015 00:37:40 +0200 Subject: [PATCH] api: export Role.emails and .emails_to_members (#8254) To allow import-wcs-roles on authentic side to import them. --- wcs/api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wcs/api.py b/wcs/api.py index 1a9089a..13ceac2 100644 --- a/wcs/api.py +++ b/wcs/api.py @@ -186,6 +186,8 @@ class ApiDirectory(Directory): for role in Role.select(): list_roles.append({'text': unicode(role.name, charset), 'allows_backoffice_access': role.allows_backoffice_access, + 'emails': role.emails or [], + 'emails_to_members': role.emails_to_members, 'slug': role.slug, 'id': role.id}) get_response().set_content_type('application/json') -- 2.1.4