diff sat_pubsub/backend.py @ 298:648f294601c2

fixed _getNodeGroups call
author Goffi <goffi@goffi.org>
date Tue, 24 Nov 2015 17:02:35 +0100
parents 6ce33757d21e
children 07ad8d8fde77
line wrap: on
line diff
--- 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)