diff --git a/synadm/api.py b/synadm/api.py index c40a03fd..7fe11a52 100644 --- a/synadm/api.py +++ b/synadm/api.py @@ -550,7 +550,7 @@ def user_modify(self, user_id, password, display_name, threepid, ]}) if avatar_url: data.update({"avatar_url": avatar_url}) - if admin: + if admin is not None: data.update({"admin": admin}) if deactivation == "deactivate": data.update({"deactivated": True})