summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2020-01-22 15:09:57 +0000
committerGitHub <noreply@github.com>2020-01-22 15:09:57 +0000
commitce84dd9e207d9ae88e4cf9ca8a9731fcac043969 (patch)
tree2dc8f2dda822d7970bd2f65835092c86fa896cad /synapse/storage
parentFixup warning about workers changes (diff)
downloadsynapse-ce84dd9e207d9ae88e4cf9ca8a9731fcac043969.tar.xz
Remove unnecessary abstractions in admin handler (#6751)
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/data_stores/main/registration.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/data_stores/main/registration.py b/synapse/storage/data_stores/main/registration.py

index cb4b2b39a0..49306642ed 100644 --- a/synapse/storage/data_stores/main/registration.py +++ b/synapse/storage/data_stores/main/registration.py
@@ -291,7 +291,7 @@ class RegistrationWorkerStore(SQLBaseStore): desc="is_server_admin", ) - return res if res else False + return bool(res) if res else False def set_server_admin(self, user, admin): """Sets whether a user is an admin of this homeserver.