Make auth backwards compat again (#18792)

* Made auth not backwards compat

* Fix tests
This commit is contained in:
Paulus Schoutsen authored and Paulus Schoutsen committed 2018-11-29 22:51:12 +01:00
1 parent f1c5e756ff
commit 0ca67bf6f7
2 files changed
+15 -5

No files matched your search

+2 -1
View File
@@ -462,10 +462,11 @@ class AuthStore:
for group in self._groups.values():
g_dict = {
'id': group.id,
# Name not read for sys groups. Kept here for backwards compat
'name': group.name
} # type: Dict[str, Any]
if group.id not in (GROUP_ID_READ_ONLY, GROUP_ID_ADMIN):
g_dict['name'] = group.name
g_dict['policy'] = group.policy
groups.append(g_dict)