diff options
author | Olivier Wilkinson (reivilibre) <olivier@librepush.net> | 2019-08-29 15:01:27 +0100 |
---|---|---|
committer | Olivier Wilkinson (reivilibre) <olivier@librepush.net> | 2019-08-29 15:01:27 +0100 |
commit | f7ececb0acca62d969c197df66f9864a49a75b78 (patch) | |
tree | c1254c69f384eb7d3559936f956aa21c7e85755d /synapse/handlers/admin.py | |
parent | Merge pull request #5890 from matrix-org/rei/rss_inc3 (diff) | |
parent | Fix coverage in sytest and use plugins for buildkite (#5922) (diff) | |
download | synapse-f7ececb0acca62d969c197df66f9864a49a75b78.tar.xz |
Merge branch 'develop' into rei/rss_target
Diffstat (limited to 'synapse/handlers/admin.py')
-rw-r--r-- | synapse/handlers/admin.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/synapse/handlers/admin.py b/synapse/handlers/admin.py index d30a68b650..1a87b58838 100644 --- a/synapse/handlers/admin.py +++ b/synapse/handlers/admin.py @@ -94,6 +94,15 @@ class AdminHandler(BaseHandler): return ret + def get_user_server_admin(self, user): + """ + Get the admin bit on a user. + + Args: + user_id (UserID): the (necessarily local) user to manipulate + """ + return self.store.is_server_admin(user) + def set_user_server_admin(self, user, admin): """ Set the admin bit on a user. |