summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--synapse/storage/registration.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/registration.py b/synapse/storage/registration.py
index 4999175ddb..232dcfd9eb 100644
--- a/synapse/storage/registration.py
+++ b/synapse/storage/registration.py
@@ -147,7 +147,7 @@ class RegistrationStore(SQLBaseStore):
                         "upgrade_ts": now,
                         "is_guest": 1 if make_guest else 0,
                         "appservice_id": appservice_id,
-                        "admin": admin,
+                        "admin": 1 if admin else 0,
                     }
                 )
             else:
@@ -160,7 +160,7 @@ class RegistrationStore(SQLBaseStore):
                         "creation_ts": now,
                         "is_guest": 1 if make_guest else 0,
                         "appservice_id": appservice_id,
-                        "admin": admin,
+                        "admin": 1 if admin else 0,
                     }
                 )
         except self.database_engine.module.IntegrityError: