# HG changeset patch # User Goffi # Date 1448380955 -3600 # Node ID 648f294601c27c996c51662345e287f07ed5a8ca # Parent 4115999d85e933e00e45208ef230cd775c210aa5 fixed _getNodeGroups call diff -r 4115999d85e9 -r 648f294601c2 sat_pubsub/backend.py --- a/sat_pubsub/backend.py Thu Sep 10 15:03:12 2015 +0200 +++ b/sat_pubsub/backend.py Tue Nov 24 17:02:35 2015 +0100 @@ -562,8 +562,8 @@ raise error.NotInRoster return (roster[_entity].groups.intersection(authorized_groups), roster) - def _getNodeGroups(self, roster, nodeIdentifier): - d = self.storage.getNodeGroups(nodeIdentifier) + def _getNodeGroups(self, roster, nodeIdentifier, pep): + d = self.storage.getNodeGroups(nodeIdentifier, pep) d.addCallback(lambda groups: (roster, groups)) return d @@ -638,7 +638,7 @@ d.addCallback(lambda roster: (True, roster)) d.addCallback(access_checked) elif access_model == const.VAL_AMODEL_ROSTER: - d.addCallback(self._getNodeGroups,node.nodeIdentifier) + d.addCallback(self._getNodeGroups, node.nodeIdentifier, ext_data.get('pep', False)) d.addCallback(self.checkGroup, requestor) d.addCallback(access_checked)