diff options
author | Daniel Wagner-Hall <dawagner@gmail.com> | 2015-08-25 17:23:05 +0100 |
---|---|---|
committer | Daniel Wagner-Hall <dawagner@gmail.com> | 2015-08-25 17:23:05 +0100 |
commit | a2355fae7e72c00e2060eec1ca677548b40d96b6 (patch) | |
tree | 572b0ae4f2422374bd6b4efa1f7b70a9cc5aedb2 /synapse/storage | |
parent | Merge pull request #248 from matrix-org/deviceid (diff) | |
parent | Merge branch 'deviceid' into removeadmin (diff) | |
download | synapse-a2355fae7e72c00e2060eec1ca677548b40d96b6.tar.xz |
Merge pull request #251 from matrix-org/removeadmin
Stop looking up "admin", which we never read
Diffstat (limited to 'synapse/storage')
-rw-r--r-- | synapse/storage/registration.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/synapse/storage/registration.py b/synapse/storage/registration.py index 240d14c4d0..a2d0f7c4b1 100644 --- a/synapse/storage/registration.py +++ b/synapse/storage/registration.py @@ -163,8 +163,7 @@ class RegistrationStore(SQLBaseStore): Args: token (str): The access token of a user. Returns: - dict: Including the name (user_id) and whether they are - an admin. + dict: Including the name (user_id) and the ID of their access token. Raises: StoreError if no user was found. """ @@ -228,7 +227,7 @@ class RegistrationStore(SQLBaseStore): def _query_for_auth(self, txn, token): sql = ( - "SELECT users.name, users.admin, access_tokens.id as token_id" + "SELECT users.name, access_tokens.id as token_id" " FROM users" " INNER JOIN access_tokens on users.name = access_tokens.user_id" " WHERE token = ?" |