diff options
author | Olivier Wilkinson (reivilibre) <olivier@librepush.net> | 2019-08-27 13:54:38 +0100 |
---|---|---|
committer | Olivier Wilkinson (reivilibre) <olivier@librepush.net> | 2019-08-27 13:54:38 +0100 |
commit | bc754cdeed38be79fac33e84fc2a78307d799676 (patch) | |
tree | af78f1d2dd225c1fb376684d4efed2e306c0d269 /synapse/handlers/admin.py | |
parent | Handle state deltas and turn them into stats deltas (diff) | |
parent | Don't include the room & user stats docs in this PR. (diff) | |
download | synapse-bc754cdeed38be79fac33e84fc2a78307d799676.tar.xz |
Merge branch 'rei/rss_inc2' into rei/rss_inc3
Diffstat (limited to 'synapse/handlers/admin.py')
-rw-r--r-- | synapse/handlers/admin.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/synapse/handlers/admin.py b/synapse/handlers/admin.py index 2f22f56ca4..d30a68b650 100644 --- a/synapse/handlers/admin.py +++ b/synapse/handlers/admin.py @@ -94,6 +94,16 @@ class AdminHandler(BaseHandler): return ret + def set_user_server_admin(self, user, admin): + """ + Set the admin bit on a user. + + Args: + user_id (UserID): the (necessarily local) user to manipulate + admin (bool): whether or not the user should be an admin of this server + """ + return self.store.set_server_admin(user, admin) + @defer.inlineCallbacks def export_user_data(self, user_id, writer): """Write all data we have on the user to the given writer. |