mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 09:56:05 -04:00
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:
parent
c71177f285
commit
1f31cc37f8
4 changed files with 36 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue