Skip to content

Commit 455aac4

Browse files
committed
Bug fix
1 parent 599db44 commit 455aac4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

synapse_admin/user.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,9 @@ def create_modify(
176176
body["threepids"] = threepids
177177
if avatar_url:
178178
body["avatar_url"] = avatar_url
179-
if admin:
179+
if isinstance(admin, bool):
180180
body["admin"] = admin
181-
if deactivated:
181+
if isinstance(deactivated, bool):
182182
body["deactivated"] = deactivated
183183
if external_ids:
184184
body["external_ids"] = external_ids

0 commit comments

Comments
 (0)