Working unsubscribe links going straight to the HS

and authed by macaroons that let you delete pushers and nothing else
This commit is contained in:
David Baker 2016-06-02 17:21:31 +01:00
parent c71177f285
commit 1f31cc37f8
4 changed files with 36 additions and 6 deletions

View file

@ -660,6 +660,13 @@ class Auth(object):
"is_guest": True,
"token_id": None,
}
elif rights == "delete_pusher":
# We don't store these tokens in the database
ret = {
"user": user,
"is_guest": False,
"token_id": None,
}
else:
# This codepath exists so that we can actually return a
# token ID, because we use token IDs in place of device