summary refs log tree commit diff
diff options
context:
space:
mode:
authorLuke Barnard <luke@matrix.org>2017-11-07 11:24:04 +0000
committerLuke Barnard <luke@matrix.org>2017-11-07 11:24:04 +0000
commit38b265cb515bba9899d41f58e3d67e654977b1c5 (patch)
tree769917ca0abb14e2cab4dd979e397dd10bebe0a7
parentReturn whether a user is an admin within a group (diff)
downloadsynapse-38b265cb515bba9899d41f58e3d67e654977b1c5.tar.xz
Remember to pick is_admin out of the db
-rw-r--r--synapse/storage/group_server.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/group_server.py b/synapse/storage/group_server.py
index f6924e1a32..6b261dcc0f 100644
--- a/synapse/storage/group_server.py
+++ b/synapse/storage/group_server.py
@@ -54,7 +54,7 @@ class GroupServerStore(SQLBaseStore):
         return self._simple_select_list(
             table="group_users",
             keyvalues=keyvalues,
-            retcols=("user_id", "is_public",),
+            retcols=("user_id", "is_public", "is_admin",),
             desc="get_users_in_group",
         )