mirror of
https://github.com/jazzband/django-ddp.git
synced 2026-04-27 02:04:52 +00:00
Fix bug in post login/logout subscription handling.
This commit is contained in:
parent
781ea8e7a2
commit
cb46caf9ff
1 changed files with 2 additions and 2 deletions
|
|
@ -190,7 +190,7 @@ class Auth(APIMixin):
|
|||
# collection not included pre-auth, everything is added.
|
||||
pass
|
||||
for obj in qs:
|
||||
this.ws.send(col.obj_change_as_msg(obj, ADDED))
|
||||
this.ws.send(col_post.obj_change_as_msg(obj, ADDED))
|
||||
|
||||
# second pass, send `removed` for objs unique to `pre`
|
||||
for col_pre, qs in pre.items():
|
||||
|
|
@ -201,7 +201,7 @@ class Auth(APIMixin):
|
|||
# collection not included post-auth, everything is removed.
|
||||
pass
|
||||
for obj in qs:
|
||||
this.ws.send(col.obj_change_as_msg(obj, REMOVED))
|
||||
this.ws.send(col_pre.obj_change_as_msg(obj, REMOVED))
|
||||
|
||||
@staticmethod
|
||||
def auth_failed(**credentials):
|
||||
|
|
|
|||
Loading…
Reference in a new issue