diff options
author | Olivier Wilkinson (reivilibre) <olivier@librepush.net> | 2019-08-20 10:29:36 +0100 |
---|---|---|
committer | Olivier Wilkinson (reivilibre) <olivier@librepush.net> | 2019-08-20 10:29:36 +0100 |
commit | 6e827507f7bbdfeb614c9f076842f726fb9ac0e3 (patch) | |
tree | d19b3915756bfb6d73a784506c707fc86afc7548 /synapse | |
parent | Add admin API docs for setting admin bits on users (diff) | |
download | synapse-github/rei/admin_setadmin.tar.xz |
Return empty object on success rather than null. github/rei/admin_setadmin rei/admin_setadmin
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/rest/admin/users.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/rest/admin/users.py b/synapse/rest/admin/users.py index 8115f2445e..b0fddb6898 100644 --- a/synapse/rest/admin/users.py +++ b/synapse/rest/admin/users.py @@ -69,8 +69,8 @@ class UserAdminServlet(RestServlet): if target_user == auth_user and not set_admin_to: raise SynapseError(400, "You may not demote yourself.") - ret = yield self.handlers.admin_handler.set_user_server_admin( + yield self.handlers.admin_handler.set_user_server_admin( target_user, set_admin_to ) - return (200, ret) + return (200, {}) |