Remove unnecessary abstractions in admin handler (#6751)

This commit is contained in:
Andrew Morgan 2020-01-22 15:09:57 +00:00 committed by GitHub
parent 33f7e5ce2a
commit ce84dd9e20
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 73 deletions

View file

@ -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.