Mercurial > libervia-pubsub
comparison src/backend.py @ 396:562e7a01218d
backend: fixed getOwnerRoster call in _prepareNotify
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 23 Feb 2019 21:00:29 +0100 |
parents | 9bc3fbf3e685 |
children | a4980d03b3a3 |
comparison
equal
deleted
inserted
replaced
395:9bc3fbf3e685 | 396:562e7a01218d |
---|---|
1466 if access_model == const.VAL_AMODEL_OPEN: | 1466 if access_model == const.VAL_AMODEL_OPEN: |
1467 allowed_items.append(item) | 1467 allowed_items.append(item) |
1468 elif access_model == const.VAL_AMODEL_PUBLISHER_ROSTER: | 1468 elif access_model == const.VAL_AMODEL_PUBLISHER_ROSTER: |
1469 if owner_roster is None: | 1469 if owner_roster is None: |
1470 # FIXME: publisher roster should be used, not owner | 1470 # FIXME: publisher roster should be used, not owner |
1471 owner_roster= yield self.getOwnerRoster(node, owners) | 1471 owner_roster= yield self.backend.getOwnerRoster(node, owners) |
1472 if owner_roster is None: | 1472 if owner_roster is None: |
1473 owner_roster = {} | 1473 owner_roster = {} |
1474 if not subscriber_bare in owner_roster: | 1474 if not subscriber_bare in owner_roster: |
1475 continue | 1475 continue |
1476 #the subscriber is known, is he in the right group ? | 1476 #the subscriber is known, is he in the right group ? |