diff options
author | Daniel Wagner-Hall <daniel@matrix.org> | 2015-08-25 16:29:39 +0100 |
---|---|---|
committer | Daniel Wagner-Hall <daniel@matrix.org> | 2015-08-25 16:29:39 +0100 |
commit | a9d8bd95e722e24c7ddd6b14a3714c1b2f737d4d (patch) | |
tree | 693d21429ea9258891c117d8c02694f4dfc36d1e /synapse/api/auth.py | |
parent | Re-wrap line (diff) | |
download | synapse-a9d8bd95e722e24c7ddd6b14a3714c1b2f737d4d.tar.xz |
Stop looking up "admin", which we never read
Diffstat (limited to 'synapse/api/auth.py')
-rw-r--r-- | synapse/api/auth.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/synapse/api/auth.py b/synapse/api/auth.py index b41e34e658..65ee1452ce 100644 --- a/synapse/api/auth.py +++ b/synapse/api/auth.py @@ -392,8 +392,7 @@ class Auth(object): Args: token (str): The access token to get the user by. Returns: - dict : dict that includes the user and whether the - user is a server admin. + dict : dict that includes the user and the ID of their access token. Raises: AuthError if no user by that token exists or the token is invalid. """ @@ -404,7 +403,6 @@ class Auth(object): errcode=Codes.UNKNOWN_TOKEN ) user_info = { - "admin": bool(ret.get("admin", False)), "user": UserID.from_string(ret.get("name")), "token_id": ret.get("token_id", None), } |